Voice interaction control method and device, storage medium and electronic equipment
By displaying the voice control panel in the interface of the second application and adjusting the interactive function status of the voice room, the problem of untimely voice interaction control caused by the need to manually authorize floating window permissions in the existing technology is solved, and more convenient and timely voice interaction control is achieved.
Patent Information
- Application Number
- CN202210210011.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-03
- Publication Date
- 2026-02-27
- Estimated Expiration
- 2042-03-03
AI Technical Summary
In existing technologies, voice interaction control requires manual authorization to enable floating window permissions, resulting in untimely voice interaction control.
By displaying the target voice room in the first application, the application interface of the second application is launched in response to the operation, and the voice control panel is displayed in the interface of the second application. The interactive function status of the voice room can be adjusted using the interactive buttons on the voice control panel provided by the second application, without the need to manually authorize the floating window permission.
It enables the control of the voice interaction function status of another application's voice room without requiring manual user authorization, improving the convenience and timeliness of voice interaction.
Smart Images

Figure CN116741164B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the computer field, in particular, to a voice interaction control method and device, a storage medium and an electronic device. BACKGROUND
[0002] Currently, a voice room can be created in an application, and when another application is displayed, voice interaction in the voice room can be controlled through a floating window or a similar window. For example, when a game application is displayed, voice interaction in a voice room created in a voice application can be controlled through a floating window.
[0003] However, the above voice interaction control method requires manual authorization to open the floating window permission, and the prompt to open the floating window permission is usually triggered under certain conditions, such as when leaving the voice room. If the application's floating window permission is not authorized to be opened, the voice interaction in the voice room cannot be controlled in time when another application is displayed.
[0004] Therefore, the voice interaction control method in the related art has the problem of not timely voice interaction control due to the need for manual authorization to open the floating window permission. SUMMARY
[0005] Embodiments of the present application provide a voice interaction control method and device, a storage medium and an electronic device to at least solve the problem of not timely voice interaction control due to the need for manual authorization to open the floating window permission in the related art voice interaction control method.
[0006] According to an aspect of an embodiment of the present application, a voice interaction control method is provided, including: displaying a target voice room in a first application, wherein the target voice room is used for voice interaction; in response to an operation performed on a target button in the target voice room, pulling up an application interface of a second application; displaying a voice control panel in the application interface of the second application, wherein the voice control panel is provided by the second application; in response to an operation performed on a first interaction button on the voice control panel, adjusting the state of a voice interaction function in the target voice room corresponding to the first interaction button.
[0007] According to another aspect of the embodiments of the present application, a voice interaction control apparatus is also provided, comprising: a first display unit configured to display a target voice room in a first application, wherein the target voice room is used for voice interaction; a pull-up unit configured to pull up an application interface of a second application in response to an operation performed on a target button in the target voice room; a second display unit configured to display a voice control panel in the application interface of the second application, wherein the voice control panel is provided by the second application; and a first adjustment unit configured to adjust a state of a voice interaction function corresponding to a first interaction button on the voice control panel in the target voice room in response to an operation performed on the first interaction button.
[0008] As an optional implementation, the first adjustment unit comprises: a first adjustment module configured to, in response to an operation performed on the first interaction button on the voice control panel, adjust a voice playing function corresponding to a receiver button in the target voice room to an open state in a case where the receiver button is included in the first interaction button and the receiver button is in the open state.
[0009] As an optional implementation, the apparatus further comprises: a first playing unit configured to, after the state of the voice interaction function corresponding to the first interaction button in the target voice room is adjusted in response to the operation performed on the first interaction button on the voice control panel, play a voice generated in the target voice room while displaying the application interface of the second application in a case where a voice playing function in a target team corresponding to the target voice room in the second application is in a closed state; or a second playing unit configured to, after the state of the voice interaction function corresponding to the first interaction button in the target voice room is adjusted in response to the operation performed on the first interaction button on the voice control panel, play the voice generated in the target voice room and a voice generated in the target team simultaneously while displaying the application interface of the second application in a case where the voice playing function in the target team corresponding to the target voice room in the second application is in an open state.
[0010] As an optional implementation, the apparatus further comprises: a first sending unit, configured to send the voice generated in the target voice room to a first team object in a target team after the application interface of the second application is pulled up in response to the operation performed on the target button in the target voice room, wherein the target team is a team corresponding to the target voice room in the second application, and the first team object is an object in the target team that is allowed to listen to the sound generated in the target voice room; or a second sending unit, configured to send the sound generated by a second team object in the target team to a first room object in the target voice room after the application interface of the second application is pulled up in response to the operation performed on the target button in the target voice room, wherein the target team is a team corresponding to the target voice room in the second application, the second team object is an object in the target team that is allowed to play voice in the target voice room, and the first room object is an object in the target voice room that is allowed to listen to the sound generated in the target team.
[0011] As an optional implementation, the first adjusting unit comprises: a second adjusting module, configured to adjust a voice collection function corresponding to the first microphone button in the target voice room to an open state in a case where the first interactive button on the voice control panel comprises a first microphone button and the first microphone button is in an open state.
[0012] As an optional implementation, the apparatus further comprises: a third sending unit, configured to send the sound collected by a target device to a third team object in a target team in a case where a second microphone button on the application interface of the second application is in an open state, wherein the target team is a team corresponding to the target voice room in the second application, the third team object is an object in the target team that is allowed to listen to the voice generated in the target team, the second microphone button is used to control the state of a voice collection function in the target team, and the target device is a device running the first application and the second application.
[0013] As an optional implementation, the second display unit comprises: a first display module, configured to display the voice control panel in the application interface of the second application and display the first interactive button in the voice control panel, wherein the button state of the first interactive button is the same as the button state of a second interactive button in the target voice room, and the first interactive button and the second interactive button are used to control the state of the same voice interactive function in the target voice room.
[0014] As an optional implementation, the apparatus further comprises: an obtaining unit, configured to, after the application interface of the second application is pulled up in response to the operation performed on the target button in the target voice room, obtain a long link message from a background server of the first application through a long link between the target device and the background server, wherein the target device is a device running the first application and the second application, and the long link message carries indication information of a button state of the second interaction button.
[0015] As an optional implementation, the pulling unit comprises: a second display module, configured to, in response to an operation performed on a jump button in the target voice room, display a virtual character list in the first application, wherein the virtual character list contains character information of at least one virtual character allowed to be used by the second application; and a pulling module, configured to, in response to an operation performed on character information of a target virtual character in the virtual character list, pull up an application interface of the second application, wherein the virtual character used by the second application is the target virtual character.
[0016] As an optional implementation, the apparatus further comprises: a first switching unit, configured to, after the state of the voice interaction function corresponding to the first interaction button in the target voice room is adjusted in response to the operation performed on the first interaction button on the voice control panel, switch to display the target voice room in response to a detected first switching operation; and a third display unit, configured to display a second interaction button in the target voice room, wherein a button state of the second interaction button is the same as a button state of the first interaction button, and the first interaction button and the second interaction button are used to control the state of the same voice interaction function in the target voice room.
[0017] As an optional implementation, the device further comprises: a second switching unit, configured to switch to display the target voice room in response to a detected second switching operation after the operation performed in response to the first interaction button on the voice control panel is executed, and the state of the voice interaction function corresponding to the first interaction button in the target voice room is adjusted; a fourth display unit, configured to display a second interaction button in the target voice room, wherein the first interaction button and the second interaction button are used to control the state of the same voice interaction function in the target voice room; a second adjustment unit, configured to adjust the button state of the second interaction button in response to an operation performed on the second interaction button; a third switching unit, configured to switch to display the application interface of the second application in response to a detected third switching operation, and display the voice control panel on the application interface of the second application; and a fifth display unit, configured to display the first interaction button in the voice control panel, wherein the button state of the first interaction button is the same as the adjusted button state of the second interaction button.
[0018] According to another aspect of the embodiments of the present application, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program. The computer program is configured to perform the voice interaction control method when executed.
[0019] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, and the computer program product or the computer program includes computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device performs the voice interaction control method.
[0020] According to another aspect of the embodiments of the present application, an electronic device is provided, and the electronic device includes a memory and a processor. The memory stores a computer program, and the processor is configured to perform the voice interaction control method by using the computer program.
[0021] In the embodiment of the present application, for the voice room displayed in the first application (which can be a voice application), when an operation performed on a specific button in the voice room is detected, the application interface of the second application (which can be a game application) can be pulled up, and a voice control panel is displayed in the application interface of the second application. By performing an operation on the interactive button on the voice control panel, the state of the corresponding voice interaction function in the voice room can be adjusted. Since the voice control panel is provided by the second application, rather than a floating window provided by the first application, the user does not need to manually authorize the opening of the floating window permission, and the purpose of controlling the state of the corresponding voice interaction function in the voice room of another application through the interactive button on the voice control panel of one application can be achieved. Moreover, since the interactive button on the voice control panel can be manipulated to adjust the state of the corresponding voice interaction function in the voice room, switching between different application operations (the floating window is actually part of the application to which the voice room belongs) is not involved, which can improve the convenience of voice interaction control and the timeliness of voice interaction, thereby solving the problem of untimely voice interaction control in the related art due to the need for manual authorization to open the floating window permission. BRIEF DESCRIPTION OF DRAWINGS
[0022] The accompanying drawings, which are included to provide a further understanding of the present application, constitute a part of the present application and illustrate the illustrative embodiments of the present application and its description, which serve to explain the present application, and do not constitute improper limitations on the present application. In the drawings:
[0023] Figure 1 is a schematic diagram of an application environment of an optional voice interaction control method according to an embodiment of the present application;
[0024] Figure 2 is a flowchart of an optional voice interaction control method according to an embodiment of the present application;
[0025] Figure 3 is a schematic diagram of a voice room according to an embodiment of the present application;
[0026] Figure 4 is a schematic diagram of an optional floating window display according to an embodiment of the present application;
[0027] Figure 5 is a schematic diagram of an optional voice control panel according to an embodiment of the present application;
[0028] Figure 6 is a schematic diagram of another optional voice control panel according to an embodiment of the present application;
[0029] Figure 7 is a flowchart of an optional voice state synchronization voice room according to an embodiment of the present application;
[0030] Figure 8 is a schematic diagram of an optional team object and room object according to an embodiment of the application;
[0031] Figure 9 is a schematic diagram of an optional game client pulled up by a voice client according to an embodiment of the application;
[0032] Figure 10 is a schematic diagram of an optional game team-up through a voice room according to an embodiment of the application;
[0033] Figure 11 is a schematic diagram of an optional selection of a virtual role to pull up a game client according to an embodiment of the application;
[0034] Figure 12 is a schematic diagram of an optional operation of a voice control panel according to an embodiment of the application;
[0035] Figure 13 is a schematic diagram of an optional button state synchronization according to an embodiment of the application;
[0036] Figure 14 is a schematic diagram of an optional operation of an interactive button according to an embodiment of the application;
[0037] Figure 15 is a schematic diagram of another optional button state synchronization according to an embodiment of the application;
[0038] Figure 16 is a schematic diagram of a flow of an optional synchronization of a voice state of a voice room according to an embodiment of the application;
[0039] Figure 17 is a structural block diagram of an optional control device of voice interaction according to an embodiment of the application;
[0040] Figure 18 is a structural schematic diagram of an optional electronic device according to an embodiment of the application;
[0041] Figure 19 is a structural block diagram of a computer system of an optional electronic device according to an embodiment of the application. DETAILED DESCRIPTION
[0042] In the following, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the drawings in the embodiments of the present application, so that those skilled in the art can better understand the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work should fall within the scope of protection of the present application.
[0043] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to include only those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to the process, method, product or device.
[0044] According to an aspect of the embodiments of the present application, a voice interaction control method is provided. Optionally, as an optional implementation, the voice interaction control method can be applied in an environment as shown in Figure 1 , but is not limited to. The environment can include, but is not limited to, a terminal device 102, a network 110, and a server 112. The terminal device 102 can include, but is not limited to, a memory 104, a processor 106, and a display 108. The server 112 can include, but is not limited to, a database 114 and a processing engine 116.
[0045] Exemplarily, the process of the voice interaction control method can include the following steps:
[0046] Step S102, creating a voice room in a voice application, and displaying the created voice room on the display 108 of the terminal device 102. The created voice room is used for voice interaction.
[0047] The terminal device 102 can run a voice application. A user (which can be a player of the game application) can log in the voice application using an application account in the voice application, and can create a voice room (provided by the voice application, which can be a virtual place for multiple people to have voice chat at the same time) in the voice application. The user or other users can enter the created voice room and have voice interaction in the voice room. For a target user, the target user can log in the voice application using a first account (corresponding to a first object) and enter the created voice room in the voice application, and the terminal device 102 displays the created voice room on the display 108.
[0048] In step S104, in response to an operation performed on the “multiplayer team-up” button in the voice room, the application interface of the game application is pulled up, and a voice control panel is displayed in the application interface of the game application. The voice control panel displayed contains interaction buttons.
[0049] The terminal device 102 can also run a game application. In response to an operation performed on the multiplayer team-up button in the voice room, the application interface of the game application can be pulled up. In a case where the game application has logged in using a second account (corresponding to a second object) and is running in the background, the application interface of the game application can be displayed. The first account and the second account can be the same account or associated accounts. In a case where the game application has not logged in, the game application can be run, the game application can be logged in using the second account, and the application interface of the game application can be displayed. Here, the application interface of the game application displayed can be a game room (provided by the game application, which can be a virtual place for players to team up with other players before entering a core single round of the game).
[0050] When the application interface of the game application is displayed, the voice control panel can be displayed on the application interface of the game application. The voice control panel is provided by the game application, not by the voice application. The voice control panel can include a set of interaction buttons, each of which can be used to control the state of a voice interaction function in the voice room corresponding to the interaction button, for example, to control the voice state of the voice room. Different interaction buttons can correspond to different voice interaction functions in the voice room.
[0051] In step S106, in response to an operation performed on the receiver button on the voice control panel, the state of a voice playing function in the voice room corresponding to the receiver button is adjusted.
[0052] The interactive buttons displayed on the voice control panel may include an earpiece button. When an operation is detected on the earpiece button, its state can be adjusted to the "on" state, and the state of the voice playback function corresponding to the earpiece button in the voice room can be controlled to be "on". Here, the state of the voice playback function corresponding to the earpiece button in the voice room can be the state of the voice playback function corresponding to the earpiece button for the first object in the voice room.
[0053] In step S108, when a sound generated in the voice room is received (which may be a sound sent by other objects in the voice room), the server 112 can determine, through the processing engine 116, that the sound generated in the voice room needs to be sent to the voice application on the terminal device 102 based on the button state of the earpiece button.
[0054] In step S110, server 112 sends the sound generated in the voice room to terminal device 102 via network 110.
[0055] In step S112, after receiving the sound generated in the voice room, the terminal device 102 can play the sound generated in the voice room through the speaker.
[0056] Optionally, in this embodiment, the terminal device 102 may include, but is not limited to, at least one of the following: mobile phone (such as Android phone, iOS phone, etc.), laptop computer, tablet computer, PDA, MID (Mobile Internet Device), PAD, desktop computer, in-vehicle device, etc. The network may include, but is not limited to, wired network and wireless network. The wired network includes: local area network (LAN), metropolitan area network (MAN), and wide area network (WAN). The wireless network includes: Bluetooth, Wi-Fi (Wireless Fidelity), and other networks that enable wireless communication. The server 112 may be a single server, a server cluster consisting of multiple servers, or a cloud server. The above is merely an example, and no limitation is made in this embodiment.
[0057] Apart from Figure 1 In addition to the example shown, the above steps can be completed independently by the terminal device 102. That is, the terminal device 102 performs steps such as receiving the sound generated in the voice room and determining whether to play the sound generated in the voice room according to the button state of the earpiece button, thereby reducing the processing pressure on the server.
[0058] Alternatively, as an optional implementation, the voice interaction control method of this embodiment is executed by the terminal device 102 as an example. Figure 2 This is a flowchart illustrating an optional voice interaction control method according to an embodiment of this application, as shown below. Figure 2As shown, the flow of the voice interaction control method can include the following steps:
[0059] Step S202, display a target voice room in the first application, wherein the target voice room is used for voice interaction.
[0060] The voice interaction control method in the embodiments of the present application can be applied to the scenario of cross-application control of voice interaction in a voice room, wherein the cross-application control of voice interaction in a voice room can refer to that the voice interaction in the voice room created in the first application can be controlled in the second application, and the first application and the second application can be different applications. The first application can be a voice application, that is, an application with voice interaction function, and in the first application, voice interaction between different objects can be performed through a voice room, and the second application can be an application configured with a voice control panel, which can be a game application or other applications, such as an instant messaging application. The application carriers of the first application and the second application can be App (Application, application program, for example, a client), a web page, a mini program, etc. In the embodiments, the first application and the second application are not limited.
[0061] In the embodiments, the game application can be but not limited to Multiplayer Online Battle Arena (MOBA) or Single-Player Game (SPG), for example, first-person shooter games, third-person shooter games, and all games using cold and hot weapons for attack, such as PVP (Player versus Player) battle or PVE (Player versus Environment) battle tower defense games. The types of game applications can include but are not limited to at least one of the following: 2D (Two Dimension) game application, 3D (Three Dimension) game application, VR (Virtual Reality) game application, AR (Augmented Reality) game application, and MR (Mixed Reality) game application. The hardware environment in which the game application runs can be a mobile terminal such as a mobile phone, or a PC (Personal Computer) terminal such as a computer. The above is only an example, and the embodiments are not limited in this regard.
[0062] In related technologies, a user creates a voice room in a voice application (for example, Figure 3After displaying the room information and controlling the voice state of the voice room through the floating window of the Android system (for example, when displaying the application interface of the game application, the voice state of the voice room is controlled through the floating window (for example, Figure 4 For an example of displaying the room information and the voice state of the voice room through the floating window when displaying the game interface.
[0063] However, the floating window needs to be authorized by the user before it can be opened, and the floating window is a component in the Android system and is not applicable to other mobile phone operating systems. In addition, the floating window of the voice software is still part of the voice software in nature, and the state intercommunication between applications has not been achieved. In the embodiment, the voice interaction in the voice room is controlled through the voice control panel of another application, and the voice control panel does not belong to the voice application (i.e., the first application), but belongs to the associated application (i.e., the second application) of the voice application, which can be set within the application, does not need to be authorized by the user to open, and does not depend on a specific operating system, and at the same time, the state intercommunication between applications can be achieved, thereby avoiding the above-mentioned problems existing in the control of the voice interaction in the voice room through the floating window.
[0064] For example, after pulling up the game through the voice room, the game side can provide the function of controlling the voice state through the voice control panel, and all users can use the function to control the voice state of the voice room, not limited to Android users who have authorized the floating window permission.
[0065] The target device (corresponding to the terminal device 102) can run the first application and the second application, the account used by the target device to run the first application is the first account corresponding to the first object, and the account used by the target device to run the second application is the second account corresponding to the second object. The first account and the second account can be the same account or different accounts with an association relationship.
[0066] The target device can display a target voice room in the first application, and the target voice room is used for voice interaction, for example, for the first object to perform voice interaction with other objects in the target voice room except the first object. The voice interaction can include but is not limited to at least one of the following: voice playing (i.e., playing the voice emitted by other objects in the target voice room), voice collection (playing the collected voice to other objects in the target voice room). The target voice room can be a voice room created by the first object, that is, the target device can create the target voice room in the first application, or the target device can control the first object to enter the target voice room, and the target voice room can be a voice room created by other objects in the first application except the first object.
[0067] Step S204, in response to the operation performed on the target button in the target voice room, the application interface of the second application is pulled up.
[0068] In the target voice room, the room object in the target voice room can be displayed, the number of objects allowed to enter the target voice room can have no limit, or can be less than or equal to a target number (for example, 5), and the target number can be the number of team objects included in a team in the second application, or the maximum number of team objects.
[0069] If it is needed to jump to the application interface of the second application, the user can manually switch the display interfaces of different applications, for example, the user can first return to the main interface of the target device, and then trigger the display of the application interface of the second application by performing a click or other trigger operation on the application icon of the second application, or the user can first call the switching interface of the opened applications, and then trigger the display of the application interface of the second application by performing a selection operation on the opened applications to select the second application.
[0070] In this embodiment, the operation performed on the target voice room can be used to switch between the application interface of the first application and the application interface of the second application. The operation performed on the target voice room can be an operation performed on a target button in the target voice room, and can include one operation or a group of operations. Here, the target button can be one button or a group of buttons, for example, it can include a multi-person team button. After detecting the operation performed on the target voice room, the target device can pull up the application interface of the second application, and switch from the application interface of the first application to the display of the application interface of the second application.
[0071] Optionally, in response to the operation performed on the target button, a pop-up prompt window can be displayed first, which is used to prompt whether to perform the jump operation of leaving the first application and opening the second application. The prompt window can include a cancel button for canceling the jump operation and a confirm button for allowing the jump operation. In the case where the operation performed on the confirm button is detected, the application interface of the second application is pulled up from the application interface of the first application.
[0072] In response to the operation performed on the target button in the target voice room, the application interface of the second application pulled up can include: in response to the operation performed on the target button, generating an application link (for example, a team-up link) for pulling up the second application, in which the room indication parameter (which can be a parameter flag corresponding to the voice control panel) for indicating the opening of the voice control panel corresponding to the target voice room can be contained; the second application can be pulled up through the application link, and the voice control panel can be opened based on the room indication parameter.
[0073] Optionally, the generated application link can be used to pull up a team-up room (such as a game room) of the second application. Correspondingly, pulling up the second application through the application link and opening the voice control panel based on the room indication parameter can be: pulling up the second application through the application link, and entering the target team-up room of the second application (i.e., the team-up room corresponding to the target voice room in the second application, at this time, the second object is located in the target team-up room), and opening the voice control panel based on the room indication parameter.
[0074] For example, as shown in Figure 5 The process of pulling up the game client (an example of the second application) through the voice client (an example of the first application) and opening the voice control panel can include the following steps:
[0075] Step S502, display the voice room on the voice client, and generate a team-up link by clicking the team-up button on the voice room.
[0076] As shown in Figure 6 The voice room list can be triggered to be displayed by selecting the chat button on the voice client. The voice room list can contain room information of multiple voice rooms (such as room 1 to room 4). The room information of each voice room can include: the room nickname of the voice room, the maximum number of objects allowed to enter the voice room (which can be 5), and the number of objects that have entered the voice room (which can be any value from 0 to 5).
[0077] The user can enter the voice room through voice room creation or voice room selection on the voice client. For example, the user selects the room information of room 1 (an example of a target voice room) in the voice room list. In response to the selection operation on the room information of room 1, the user can directly enter room 1 and display room 1. Alternatively, the user can first display the room description window of room 1, and the object information of the room objects that have entered room 1 can be displayed in the room description window, for example, the object identifier of the object or the object identifier of the associated object of the object in the game client (such as nickname 1), the object or the associated object of the object in the game client, the server (such as server 1) where the object or the associated object is located, and the rating information (such as rating 1) of the virtual role in the server.
[0078] The room description window can also include a button for joining the voice room, i.e., a join voice room button, and the user can enter room 1 by clicking the join voice room button. The object information of the room objects that have entered room 1 can be included in room 1, and the objects that have entered room 1 include four objects corresponding to nickname 1 to nickname 4 in room 1. Figure 5
[0079] The player can click the multi-player team-up button on room 1 to generate a team-up link of the team-up room in the game application, and the team-up link includes the voice room parameter (i.e., the room indication parameter) and sets the value of the parameter to 1.
[0080] In step S504, the voice client carries the voice room parameter to call the game client.
[0081] In step S506, the game client calls the game room.
[0082] In step S508, the game client determines whether the parameter flag bit of the voice room parameter is included. If yes, step S510 is performed, otherwise, the process ends.
[0083] After the game client enters the game room (i.e., the team-up room), the game client determines the parameter value of the voice room parameter. If the parameter value of the voice room parameter is 1, step S510 is performed, otherwise, the process ends.
[0084] In step S510, the voice control panel is opened.
[0085] Optionally, in a case where there is a target team-up room corresponding to the target voice room in the second application, the second object can be directly controlled to enter the target team-up room of the second application; and in a case where there is no team-up room corresponding to the target voice room in the second application, a team-up room corresponding to the target voice room can be created in the second application to obtain the target team-up room, and the second object can be controlled to enter the created target team-up room.
[0086] In step S206, a voice control panel is displayed in the application interface of the second application, wherein the voice control panel is provided by the second application.
[0087] When the application interface of the second application is displayed on the target device (at this time, the second application is the uppermost application running on the target device), the voice control panel can be displayed in the application interface of the second application. The voice control panel is provided by the second application, rather than the first application, and can be a control panel corresponding to the voice room in the first application, which can be used to display information of at least one of the following: a voice state in the target voice room (which can be a voice state or a voice interaction state in which the first object is in the target voice room, such as a state in which voice collection is allowed, a state in which voice playback is allowed, etc., which can be represented by the button state of the interaction button in the target voice room), room information of the target voice room, which can include but is not limited to at least one of the following: a room name of the target voice room, object information in the target voice room (for example, object information that has been on the microphone in the target voice room), and other information, which is not limited in this embodiment. For example, the voice state of the voice room and the real-time information of the participating object (or room object) of the voice room can be obtained and displayed on the voice control panel.
[0088] In step S208, in response to an operation performed on the first interaction button on the voice control panel, the state of the voice interaction function corresponding to the first interaction button in the target voice room is adjusted.
[0089] The voice control panel can include a first interaction button, which can be used to control the voice interaction in the target voice room, and can be used to control the state of the voice interaction function corresponding to the first interaction button in the target voice room, such as the state of the voice interaction function corresponding to the first interaction button in the target voice room for the first object. The voice interaction function can include but is not limited to at least one of the following: a voice playback function, a voice collection function. The first interaction button can be a set of first buttons, which can include but is not limited to at least one of the following: an earpiece button, a microphone button, and other buttons. Each first button in the set of first buttons can be used to control at least one voice interaction function in the target voice room, and different first buttons can be used to control different voice interactions in the target voice room.
[0090] For example, such as Figure 7 As shown, in the game client's team room, a voice control panel corresponding to the voice room in the voice client can be displayed. This voice control panel displays the room information (such as the players in the voice room) and the voice status. The voice status is indicated by the earpiece button, microphone button, etc., on the voice control panel. Currently, the microphone button is in the off state, and the earpiece button (i.e., the speaker button) is in the on state. At this time, the sound generated in the voice room can be played.
[0091] Optionally, when the application carrier of the first application is a client, displaying the target voice room in the first application may include displaying the target voice room on the first client (e.g., a voice client). When the application carrier of the second application is a client, displaying the voice control panel in the application interface of the second application may include displaying the voice control panel on the second client (e.g., a game client). Here, the first client is the client of the first application logged in using a first account, and the second client is the client of the second application logged in using a second account. Both the first client and the second client are clients running on the target device.
[0092] When it is necessary to adjust the voice interaction in the target voice room, the user can perform an operation on the first interaction button to adjust the voice interaction in the target voice room. When the first interaction button is a group of first buttons, the user can perform an operation on all or some of the first buttons in the group to adjust the button state of the first interaction buttons. The operation performed may include at least one of the following operations: click operation, double click operation, swipe operation, gesture operation, and may also include other operations, which are not limited in this embodiment.
[0093] The target device can detect the operation performed on the first interaction button and, in response to the detected operation, adjust the button state of the first interaction button. This adjustment can involve modifying the configuration information corresponding to the button state, such as changing the state identifier of the first interaction button, or changing the button identifier displayed on the voice control panel to clearly represent the voice status in the target voice room.
[0094] For example, when a player clicks the earpiece button, toggling its state from on to off, the button icon displayed on the voice control panel can also be adjusted accordingly. Figure 8 As shown, the handset button on the voice control panel is turned off.
[0095] In this embodiment, in response to the operation performed on the first interaction button, the target device can adjust the state of the voice interaction function in the target voice room corresponding to the first interaction button (for example, adjust the state of the first object in the voice interaction function in the target voice room corresponding to the first interaction button), and control the voice interaction in the target voice room according to the adjusted state of the voice interaction function while displaying the application interface of the first application.
[0096] Optionally, after adjusting the button state of the first interaction button, the target device currently displays the application interface of the second application, and the user can continue to perform operations on the application interface of the second application. While displaying the application interface of the second application (for example, the display interface of the second client), the target device can control the voice interaction in the target voice room according to the adjusted button state of the first interaction button, which can be to control the voice interaction in the target voice room, such as voice playing, voice collecting, etc.
[0097] Optionally, the second application can synchronize the button state of the first interaction button to the first application to modify the voice state of the target voice room through the first application, and also adjust the button state of the second interaction button in the target voice room, and the first application controls the voice interaction in the target voice room according to the voice state of the target voice room. Here, the first interaction button and the second interaction button are used to perform the same control on the voice interaction in the target voice room, that is, the first interaction button and the second interaction button are used to control the state of the same voice interaction function in the target voice room. The second application synchronizing the button state of the first interaction button to the first application can include: the second application sending the button state of the first interaction button to the background server of the first application to synchronize the button state of the first interaction button to the first application through the background server of the first application.
[0098] For example, after the player uses the voice control panel of the game client to manipulate the voice state of the voice room, the voice state synchronization process with the voice client can be as shown in Figure 9 The voice state synchronization process can include the following steps:
[0099] Step S902, the game client sends a message for indicating modifying the voice state to the voice background (that is, the background server of the voice client).
[0100] Steps S904-S906, after receiving the message sent by the game client, the voice background changes the voice state of the voice room saved by the voice background, and pushes a notification of the change of the voice state to the voice client, and the above notification can be sent through the long link between the voice client.
[0101] Step S908, after receiving the notification sent by the voice background, the voice client requests the current voice state of the voice room from the voice background.
[0102] Step S910, the voice background returns the current voice state of the voice room to the voice client.
[0103] Step S912, after receiving the voice state returned by the voice background, the voice client modifies the voice state of the voice room on the voice client.
[0104] Through the above process, the voice state of the voice client can be synchronized in response to the operation of the game client after the game client operates the voice state.
[0105] Optionally, the voice control panel can have multiple display states, which can include but are not limited to at least one of the following: a first display state, in which a first interactive button can be displayed on the voice control panel; a second display state, in which the voice control panel can be in the form of a transparent panel identifier (for example, a transparent circular identifier), and the first interactive button is not displayed, and the voice control panel can be switched back to the first display state by performing a preset operation on the panel identifier. After adjusting the button state of the first interactive button, or after the duration of the panel operation performed on the voice control panel reaches a target duration, the voice control panel can be switched to the second display state.
[0106] It should be noted that the voice control panel can obtain state information in the voice room in real time, and the operation performed on the voice control panel can also modify the voice state of the voice room, thereby realizing real-time synchronization and voice state modification of the room information in the first application when using the second application. For example, when entering a game team room, the voice control panel can be opened, and the current state of the voice room can be controlled by clicking the button on the voice control panel, thereby controlling another application while playing the game.
[0107] Through the embodiments provided in the present application, a target voice room is displayed in a first application, wherein the target voice room is used for voice interaction; in response to an operation performed on a target button in the target voice room, an application interface of a second application is pulled up; a voice control panel is displayed in the application interface of the second application, wherein the voice control panel is provided by the second application; in response to an operation performed on a first interactive button on the voice control panel, the state of a voice interaction function corresponding to the first interactive button in the target voice room is adjusted, thereby solving the problem of the voice interaction control mode in the related art that the voice interaction control is not timely due to the need for manual authorization to open the permission of the floating window, improving the convenience of voice interaction control and improving the timeliness of voice interaction.
[0108] As an optional implementation, in response to the operation performed on the first interactive button on the voice control panel, adjusting the state of the voice interaction function in the target voice room corresponding to the first interactive button includes:
[0109] S11, in response to the operation performed on the first interactive button on the voice control panel, if the first interactive button includes a handset button and the handset button is in an open state, adjusting the voice playing function in the target voice room corresponding to the handset button to an open state.
[0110] In this embodiment, the first interactive button can include a handset button, and if the operation performed on the first interactive button on the voice control panel includes an operation performed on the handset button, the button state of the handset button can be determined, that is, the button state of the handset button after the operation is performed on the handset button. If the handset button is in an open state, the voice playing function in the target voice room corresponding to the handset button can be adjusted to an open state.
[0111] After adjusting the voice playing function in the target voice room corresponding to the handset button to an open state, the voice generated in the target voice room can be played while displaying the application interface of the second application, and the application that plays the voice generated in the target voice room can be the first application (for example, the first client). The voice generated in the target voice room can be the sound generated by the room object other than the first object in the target voice room, such as the sound generated by the room object corresponding to the microphone button in an open state (that is, the voice collection function in the target voice room is in an open state).
[0112] The target device can be in communication connection with the background server of the first application, and the button state of the first interactive button can be synchronized to the background server of the first application through the communication connection with the background server of the first application. The voice state of the target voice room can be saved in the background server of the first application according to the received button state of the first interactive button, and here, the voice state of the target voice room is used to represent the voice interaction in the target voice room, for example, the state of the voice interaction function of the first object in the target voice room.
[0113] According to the voice state of the target voice room, the background server of the first application can control the voice interaction in the target voice room. For example, the background server of the first application can save the voice state of the first object in the target voice room, and control the voice interaction of the first object in the target voice room according to the voice state of the first object in the target voice room.
[0114] When the receiver button on the voice control panel is in the open state, the voice state of the target voice room includes a voice playing state, and the background server of the first application can send the received sound generated in the target voice room to the first application running on the target device for playing. For example, when the voice state of the first object in the target voice room includes the voice playing state, the background server of the first application can send the received sound generated in the target voice room to the first client for playing.
[0115] Optionally, in the case where the first interaction button includes the receiver button and the receiver button is in the closed state, the voice playing function corresponding to the receiver button in the target voice room is adjusted to the closed state. While the application interface of the second application is displayed, the voice generated in the target voice room can be prohibited from being played. The prohibition of playing the voice generated in the target voice room can be achieved by the background server of the first application not sending the voice generated in the target voice room to the first application running on the target device.
[0116] Through the embodiments provided in the present application, when the receiver button on the voice control panel is opened, the state of the voice playing function corresponding to the receiver button in the voice room is adjusted according to the button state of the receiver button, which can realize the intercommunication of voice states between applications and improve the accuracy of voice state control.
[0117] As an optional implementation, the team corresponding to the target voice room in the second application is the target team, i.e., the second object is in the target team of the second application, for example, a team participating or to participate in a game in a game application. After the execution of the above step S208, the target device can perform voice processing based on the state of the voice interaction function in the target voice room and the state of the voice interaction function in the target team.
[0118] Optionally, in the case where the voice playing function in the target team is in the closed state, the voice generated in the target voice room can be played while the application interface of the second application is displayed. Since the voice playing function in the target voice room is in the open state, the sound generated in the target voice room is allowed to be played at this time; since the voice playing function in the target team is in the closed state, the sound generated in the target team is not allowed to be played at this time. In this case, only the voice generated in the target voice room can be played while the application interface of the second application is displayed.
[0119] Optionally, in a case where the voice playing function in the target team is in an open state, the voice generated in the target voice room and the voice generated in the target team can be played simultaneously while the application interface of the second application is displayed. Since the voice playing function in the target voice room is in the open state, the sound generated in the target voice room is allowed to be played at this time; since the voice playing function in the target team is in the open state, the sound generated in the target team is allowed to be played at this time. In this case, the voice generated in the target voice room and the voice generated in the target team can be played simultaneously while the application interface of the second application is displayed.
[0120] According to the embodiments provided in the present application, the voice playing is performed based on the state of the voice playing function in the voice room and the state of the voice playing function in the application team, so that the flexibility of voice playing can be improved.
[0121] As an optional implementation, after the application interface of the second application is pulled up in response to the operation performed on the target button in the target voice room, the method further includes:
[0122] S21, sending the voice generated in the target voice room to a first team object in a target team, wherein the target team is a team in the second application corresponding to the target voice room, and the first team object is an object in the target team that is allowed to listen to the sound generated in the target voice room; or,
[0123] S22, sending the sound generated by a second team object in the target team to a first room object in the target voice room, wherein the target team is a team in the second application corresponding to the target voice room, the second team object is an object in the target team that is allowed to play voice in the target voice room, and the first room object is an object in the target voice room that is allowed to listen to the sound generated in the target team.
[0124] In the present embodiment, the team in the second application corresponding to the target voice room is the target team, i.e., the second object is in the target team of the second application. The sound generated in the target voice room and the sound generated in the target team can be interchanged to improve the convenience of information interaction, for example, the object (room object in the target voice room) that enters the target voice room using the account in the first application but does not enter the target team using the account in the second application and the object (team object in the target team) that enters the target team using the account in the second application but does not enter the target voice room using the account in the first application can be facilitated to perform information interaction.
[0125] Optionally, the target team can include an object that allows listening to the sound generated in the target voice room, i.e., a first team object, which can be an object in the target team other than the second object that allows receiving the voice generated in the target voice room. The first team object can correspond to an account used in the target team and not used in the target voice room (in this case, the account used for logging in the first application and the second application can be the same), or an account used in the target team and not associated with an account in the target voice room (in this case, the account used for logging in the first application and the second application can be different).
[0126] The object in the target team that allows receiving the voice generated in the target voice room can be set through the voice control panel or the application interface of the second application. For example, the voice control panel or the application interface of the second application can include a first configuration button for configuring the team object that allows receiving the voice generated in the target voice room, and by operating the first configuration button, the first team object in the target team can be configured as the team object that allows receiving the voice generated in the target voice room. The above configuration operation can only be allowed to be performed by a preset team object in the target team (for example, a team object in the target team corresponding to a room object in the target voice room having room management authority, a team object in the target team having team management authority), or can be performed by any team object in the target team.
[0127] Optionally, the team object configured by the above first configuration operation can be determined as a first candidate object, and the team object in the first candidate object that allows receiving the voice generated in the target voice room can be determined as the first team object; or the team object configured by the above first configuration operation can be determined as a first candidate object, and the first team object can be determined from the first candidate object according to the object configuration of the first candidate object, and the first team object is the team object in the first candidate object that determines to receive the voice generated in the target voice room. The above first team object can be configured through a second configuration button in the application interface of the second application or the voice control panel, or can be configured in the configuration interface of the second application, which is not limited in the present embodiment.
[0128] For example, as shown in FIG. 6, the voice control panel 601 can include a first configuration button 602 for configuring the team object that allows receiving the voice generated in the target voice room, and by operating the first configuration button 602, the first team object in the target team can be configured as the team object that allows receiving the voice generated in the target voice room. Figure 8As shown, all team objects (i.e., team object 1, team object 2, and team object 3) in the team room belong to one team, and the voice room corresponding to the voice control panel contains room object 1, room object 2, and room object 3, wherein team object 2 matches room object 2, team object 3 matches room object 3, and team object 1 has no matching object in the voice room. Team object 1 can be configured as a team object that allows receiving voice generated in the voice room, in which case the voice generated in the voice room can be sent to the game client corresponding to team object 1 for playing.
[0129] After obtaining the voice generated in the target voice room, the target device (which can also be a background server of the first application or a background server of the second application) can send the voice generated in the target voice room to the first team object. For example, after obtaining the voice generated in the target voice room, the background server of the first application can send the voice generated in the target voice room to the background server of the second application, and the background server of the second application can send the voice generated in the target voice room to the first team object.
[0130] The target team can contain an object that allows playing voice in the target voice room, i.e., the second team object, which can be a team object in the target team other than the second object that allows sending voice to room objects in the target voice room, i.e., the second team object. The second team object can correspond to an account used in the target team and not used in the target voice room, or an account used in the target team and not associated with an account in the target voice room.
[0131] The object in the target team that allows sending voice to room objects in the target voice room can be set through the voice control panel or the application interface of the second application. For example, the voice control panel or the application interface of the second application can contain a third configuration button for configuring a team object that allows sending voice to an account in the target voice room, and by operating the third configuration button, the second team object in the target team can be configured as a team object that allows sending voice to room objects in the target voice room. The above configuration operation can only be allowed to be performed by a preset team object in the target team, or can be performed by any team object in the target team.
[0132] Optionally, the team object configured by the configuration operation can be determined as the second candidate object, and a team object in the second candidate object that is allowed to send voice to the room object in the target voice room can be determined as the second team object; or the team object configured by the configuration operation can be determined as the second candidate object, and the second team object can be determined from the second candidate object according to the object configuration of the second candidate object. The second team object is a team object in the second candidate object that is allowed to send voice to the room object in the target voice room. The second team object can be configured by the fourth configuration button in the application interface of the second application or the voice control panel, or can be configured in the configuration interface of the second application. The embodiment does not limit this.
[0133] After obtaining the sound generated by the second team object, the target device (which can also be a background server of the first application or a background server of the second application) can send the sound generated by the second team object to the first room object in the target voice room. For example, after obtaining the sound generated by the second team object, the background server of the second application can send the sound generated by the second team object to the background server of the first application, and the background server of the first application can send the sound generated by the second team object to the first room object.
[0134] Here, the first room object can be a room object in the target voice room that is allowed to receive the sound generated in the target team. For example, it can be a room object in the target voice room that is allowed to receive the sound generated in the target team except for the first object. The first room object can correspond to an account that is used in the target voice room and is not used in the target team (in this case, the account used for logging in to the first application and the second application can be the same account), or an account that is used in the target voice room and has no associated account in the target team (in this case, the accounts used for logging in to the first application and the second application can be different accounts).
[0135] The room object in the target voice room that is allowed to receive the sound generated in the target team can be set through the voice control panel or the room interface of the target voice room. For example, the voice control panel or the room interface of the target voice room can include a fifth configuration button for configuring a room account that is allowed to receive the sound generated in the target team. By operating the fifth configuration button, the first room object in the target voice room can be configured as a room object that is allowed to receive the sound generated in the target team. The configuration operation can only be allowed to be performed by a predetermined object in the target team or the target voice room, or can be performed by any object in the target team or the target voice room.
[0136] Optionally, the object configured by the configuration operation described above can be determined as a third candidate object, and a room object in the third candidate object that allows receiving the sound generated in the target team can be determined as the first room object; or the object configured by the configuration operation described above can be determined as a third candidate object, and the first room object can be determined from the third candidate object according to the object configuration of the third candidate object, and the first room object is an object in the third candidate object that is determined to receive the sound generated in the target team. The first room object can be configured by the sixth configuration button in the voice control panel or the room interface of the target voice room, or can be configured in the voice control panel or the room interface of the target voice room, which is not limited in the embodiment.
[0137] It should be noted that the setting mode of the first team object, the second team object and the first room object described above is only an example, which is not limited in the embodiment. For the device that has objects in the target team and the target voice room, if the voice interaction permission is opened in both channels (different data channels are used for data transmission of the first application and the second application), the voice interaction can be performed through only one channel, or only the voice interaction data of one channel is processed.
[0138] For example, referring to Figure 10 And the team object 1 does not have a matched object in the voice room, and the room object 1 does not have a matched object in the game team. The team object 1 can be configured as a team object that allows sending voice to the room object in the voice room, and the room object 1 can be configured as a room object that allows receiving the sound generated in the game team. In this case, the sound generated by the team object 1 can be sent to the voice client corresponding to the room object 1 for playing.
[0139] Through the embodiments provided in the application, the sound generated in the voice room of one application and the sound generated in the team of another application are interconnected, which can improve the convenience of information interaction.
[0140] As an optional implementation, in response to an operation performed on a first interaction button on the voice control panel, adjusting a state of a voice interaction function in the target voice room corresponding to the first interaction button, comprising:
[0141] S31, in response to an operation performed on a first interaction button on the voice control panel, in a case where the first interaction button includes a first microphone button and the first microphone button is in an open state, adjusting a voice collection function in the target voice room corresponding to the first microphone button to an open state.
[0142] In the embodiment, the first interaction button can include a first microphone button, if the operation performed on the first interaction button on the voice control panel includes the operation performed on the first microphone button, the button state of the first microphone button can be determined, that is, the button state of the first microphone button after the operation is performed on the first microphone button. If the first microphone button is in an open state, the voice collection function corresponding to the first microphone button in the target voice room can be adjusted to the open state.
[0143] After adjusting the voice collection function corresponding to the first microphone button in the target voice room to the open state, the target device can perform sound collection while displaying the application interface of the second application, obtain the sound collected by the target device, and send the sound collected by the target device to the second room object in the target voice room. The application that sends the sound collected by the target device can be the first application (for example, the first client).
[0144] The target device can be in communication connection with the background server of the first application, and the voice state of the target voice room (for example, the voice state of the second object in the target voice room) can be configured in the same or similar manner as in the foregoing embodiments, and according to the voice state of the target voice room, the voice interaction of the first object in the target voice room is controlled.
[0145] When the first microphone button on the voice control panel is in the open state, the voice state of the target voice room includes a voice collection state, and the target device can send the sound collected by the target device to the background server of the first application, and the background server of the first application sends the sound collected by the target device to the second room object for playing, for example, to the first application (or the client of the first application) corresponding to the second room object for playing.
[0146] Here, the second room object can be a room object in the target voice room that is allowed to receive the sound generated in the target voice room, for example, it can be a room object in the target voice room that is allowed to receive the sound generated in the target voice room except the first object, for example, the second room object is a room object in the target voice room whose corresponding voice state is a voice playing state, which can be a room object in the target voice room whose corresponding earpiece button in the target voice room is in an open state.
[0147] Optionally, in a case where the first interaction button includes a first microphone button and the first microphone button is in a closed state, a voice collection function corresponding to the first microphone button in the target voice room can be adjusted to a closed state, and while the application interface of the second application is displayed, sending of sound collected by the target device to room objects in the target voice room can be prohibited. The prohibition of sending the sound collected by the target device to the room objects in the target voice room can be implemented by the target device not performing a sound collection operation or not sending the sound collected by the target device to a background server of the first application.
[0148] Through the embodiments provided in the present application, when the microphone button on the voice control panel is turned on, the collected sound is synchronized to other room objects in the voice room, which can improve the accuracy of data transmission.
[0149] As an optional implementation, the team corresponding to the target voice room in the second application is a target team, that is, the second object is in the target team of the second application. Correspondingly, after the application interface of the second application is pulled up, the above method further includes:
[0150] S41, in a case where a second microphone button on the application interface of the second application is in an open state, sending sound collected by a target device to a third team object in a target team, wherein the third team object is an object in the target team that is allowed to listen to voice generated in the target team, the second microphone button is used to control a state of a voice collection function in the target team, and the target device is a device running the first application and the second application.
[0151] In the present embodiment, the application interface of the second application can have a second microphone button used to control a state of a voice collection function in the target team, for example, a state of a voice collection function of the second object in the target team. The voice collection function can include, but is not limited to, at least one of the following: a state of a voice collection function of the second object in the entire target team (for example, a voice collection function in the whole team), a state of a voice collection function of the second object in a target sub-team of the target team (for example, a voice collection function in a team).
[0152] If the second microphone button is in the open state, the target team can contain a team object matched with the open state of the second microphone, i.e., a third team object, which can be a team object in the target team that is allowed to receive the voice generated by the second object in addition to the second object. The third team object can be a team object in the target team whose earpiece button on the application interface of the corresponding second application is in the open state. For the sound collected by the target device, the sound collected by the target device can be sent to the third team object, for example, the target device sends the sound collected by the target device to the background server of the second application, and the background server of the second application sends the sound collected by the target device to the third team object for playing.
[0153] Through the embodiments provided in the present application, when the microphone button on the team is turned on, the collected sound is synchronized to the team object in the team, which can improve the accuracy of data transmission.
[0154] As an optional implementation, a voice control panel is displayed in the application interface of the second application, including:
[0155] S51, a voice control panel is displayed in the application interface of the second application, and a first interaction button is displayed in the voice control panel, wherein the button state of the first interaction button is the same as the button state of the second interaction button in the target voice room, and the first interaction button and the second interaction button are used to control the state of the same voice interaction function in the target voice room.
[0156] In the present embodiment, when the voice control panel is displayed in the application interface of the second application, the voice control panel can be displayed in a preset position in the application interface of the second application, at this time, the voice control panel can be in a first display state. In order to avoid the information displayed in the voice control panel from causing shielding to other information in the application interface of the second application due to being too much, the first interaction button displayed in the voice control panel can only contain the button identifier of the first interaction button, which can be used to identify the button state of the first interaction button. In addition to the first interaction button, only the object avatar corresponding to the room object in the target voice room can be displayed on the voice control panel, or only the object avatar corresponding to the room object in the target voice room and the microphone position without the object on the microphone are displayed.
[0157] The target voice room can include a second interaction button, which can be a set of second buttons, such as a microphone button, an earpiece button, and the like. The second interaction button and the first interaction button can have the same function, that is, both are used to control the state of the same voice interaction function in the target voice room. To ensure the continuity of voice interaction in the target voice room, when the application interface of the second application is displayed, the button state of the first interaction button can be set to be the same as the button state of the second interaction button.
[0158] Optionally, the target device can obtain the room state of the target voice room from the background server of the first application, wherein the room state of the target voice room matches the button state of the second interaction button, and the button state of the first interaction button is set according to the room state of the target voice room, so that the button state of the first interaction button is set to be the same as the button state of the second interaction button.
[0159] For example, referring to Figure 6 , the button state of the microphone button in the voice room is in the off state. After the game client is pulled up by clicking the multi-person teaming button, the button state of the microphone button on the voice control panel is also in the off state, referring to Figure 10 .
[0160] Through the embodiments provided in the present application, when the application is switched, the button state of the interaction button on the voice control panel is set to be the same as the button state of the interaction button in the voice room, which can ensure the continuity of voice interaction in the voice room and improve the user experience.
[0161] As an optional implementation, after the application interface of the second application is pulled up in response to the operation performed on the target button in the target voice room, the above method further includes:
[0162] S61, obtaining a long link message from the background server through a long link between the target device and the background server of the first application, wherein the target device is a device running the first application and the second application, and the long link message carries indication information of the button state of the second interaction button.
[0163] In this embodiment, the target device can establish a long link communication with the background server of the first application, and perform data transmission with the background server of the first application through the established long link. When the button state of the second interactive button needs to be obtained, the long link message can be obtained from the background server of the first application through the long link between the target device and the background server of the first application. The long link message obtained can carry the indication information of the button state of the second interactive button. The button state of the second interactive button can be extracted from the long link message, so that the button state of the first interactive button can be set based on the extracted button state of the second interactive button.
[0164] Optionally, the button state of the second interactive button represents the voice state of the target voice room, and the background server of the first application can save the voice state of the target voice room. The long link message can carry the voice state of the target voice room, and the button state of the first interactive button can be set according to the voice state of the target voice room, so as to ensure that the button state of the first interactive button is the same as the button state of the second interactive button.
[0165] For example, after the game client opens the voice control panel, the long link communication can be established with the application background of the voice application, and the room information and the voice state of the voice room can be obtained from the application background of the voice application and displayed on the voice control panel.
[0166] Through the embodiments provided in the present application, the synchronization of the voice state of the voice room through the long link with the application background can ensure the accuracy and timeliness of the voice state synchronization.
[0167] As an optional implementation, in response to the operation performed on the target button in the target voice room, the application interface of the second application is pulled up, including:
[0168] S71, in response to the operation performed on the jump button in the target voice room, displaying a virtual role list in the first application, wherein the virtual role list contains role information of at least one virtual role allowed to be used by running the second application;
[0169] S72, in response to the operation performed on the role information of the target virtual role in the virtual role list, pulling up the application interface of the second application, wherein the virtual role used by running the second application is the target virtual role.
[0170] In this embodiment, for the second application, an account may be allowed to create only one virtual character, or it may be allowed to create multiple virtual characters. For example, an account may be allowed to create different virtual characters on one server, or an account may be allowed to create different virtual characters on different servers. Therefore, when it is necessary to jump to the application interface displaying the second application, the role information of each virtual character among at least one virtual character allowed to run the second application can be displayed on the target device to facilitate the selection of the virtual character used to run the second application this time.
[0171] A jump button can be displayed on the application interface of the first application. This jump button is used to trigger a jump from the first application to the second application, such as the aforementioned multiplayer team button. By performing an operation such as clicking the jump button, a list of virtual characters can be displayed on the application interface of the first application. The list of virtual characters contains character information for at least one of the aforementioned virtual characters. Here, the character information can be used to identify the corresponding virtual character, and it may include, but is not limited to, at least one of the following: the virtual character's name, the server where the virtual character is located, the virtual character's rank information, the virtual character's level information, etc. In this embodiment, the character information is not limited.
[0172] If the user selects the role information of the target virtual character in the list of virtual characters, the target device can detect the operation performed on the role information of the target virtual character. In response to the detected operation, the application interface of the second application is launched, and the user is switched from the application interface of the first application to the application interface of the second application. The virtual character used to run the second application is the target virtual character.
[0173] For example, such as Figure 10 and Figure 11 As shown, after clicking Figure 10 After clicking the multiplayer team button, you can see... Figure 11 The game character selection screen is shown on the left. This screen can contain a list of game characters allowed to be used by the game client.
[0174] After a player selects a game character (e.g., a game character nicknamed "Nickname 1," serving the same function as the aforementioned virtual character), they can click the "Create Multiplayer Team" button to trigger the creation of a multiplayer team within the game application. After clicking the "Create Multiplayer Team" button, a pop-up prompt window will appear (e.g., ...). Figure 11 (As shown on the right), the player is prompted that they are about to leave the voice client and open the game client. If a click on the "Allow" button is detected, the game client can be launched, and a multiplayer team can be created on the game client using the selected game character, such as a five-person team, a three-person team, etc.
[0175] Here, for the creating object or a predetermined object (such as the room object that enters the voice room earliest, which can be the host of the voice room) in the voice room, the object can be allowed to create a multi-player team in the game application as a team leader. The object selects a game character in the aforementioned manner and creates a multi-player team in the game application. For other objects in the voice room, after clicking the multi-player team button, the game character selection interface displayed after the jump can display a join multi-player team button instead of a create multi-player team button, so that other players enter the multi-player team that has been created, thereby avoiding different objects in a voice room entering different teams in a second application, and improving the accuracy and rationality of application jumping.
[0176] Through the embodiments provided in the present application, by displaying the virtual characters allowed to be used by the application jumped to when the application is jumped, and running the application jumped to according to the selected virtual character, the convenience and accuracy of application jumping can be improved.
[0177] As an optional implementation, after adjusting the state of the voice interaction function in the target voice room corresponding to the first interaction button in response to the operation performed on the first interaction button on the voice control panel, the above method further includes:
[0178] S91, in response to the detected first switching operation, switching to display the target voice room, and displaying a second interaction button in the target voice room, wherein the button state of the second interaction button is the same as the button state of the first interaction button, and the first interaction button and the second interaction button are used to control the state of the same voice interaction function in the target voice room.
[0179] In the present embodiment, the control performed by the first interaction button on the voice interaction in the target voice room can be synchronized to the second interaction button in the target voice room, that is, the button state of the second interaction button can be set to be the same as the button state of the first interaction button, and the display state of the second interaction button is consistent with the button state of the first interaction button when switching to the target voice room.
[0180] The user can switch the interface currently displayed by the target device to the target voice room through the first switching operation in the same or similar manner as in the foregoing embodiments. The target device can detect the first switching operation, and in response to the detected first switching operation, switch to display the target voice room. The target voice room can display a second interaction button, and the button state of the second interaction button is the same as the current button state of the first interaction button.
[0181] For example, as shown in FIG. 1A, when the microphone button on the voice control panel is clicked, the button state of the microphone button changes from the closed state to the open state, as shown in FIG. 1B. Figure 10 For example, as shown in FIG. 1A, when the microphone button on the voice control panel is clicked, the button state of the microphone button changes from the closed state to the open state, as shown in FIG. 1B.Figure 12 At this time, if returning to display the room 1, the button state of the microphone button on the room 1 is also adjusted synchronously, and the button state of the microphone button is also in the open state, as shown in FIG. 6B. Figure 13
[0182] According to the embodiments provided in the present application, when the application interface is switched, the interactive buttons are displayed according to the synchronized button states of the interactive buttons, which can ensure the continuity of voice interaction in the voice room and improve the accuracy of information display.
[0183] As an optional implementation, after the state of the voice interaction function corresponding to the first interactive button in the target voice room is adjusted in response to the operation performed on the first interactive button on the voice control panel, the above method further includes:
[0184] S101, in response to the detected second switching operation, switching to display the target voice room, and displaying the second interactive button in the target voice room, wherein the first interactive button and the second interactive button are used to control the state of the same voice interaction function in the target voice room;
[0185] S103, in response to the operation performed on the second interactive button, adjusting the button state of the second interactive button;
[0186] S105, in response to the detected third switching operation, switching to display the application interface of the second application, displaying the voice control panel on the application interface of the second application, and displaying the first interactive button in the voice control panel, wherein the button state of the first interactive button is the same as the adjusted button state of the second interactive button.
[0187] In the present embodiment, the target device can be executed with the same or similar manner as in the foregoing embodiments to switch the interface currently displayed by the target device to the target voice room. Here, when the target voice room is displayed, the button state of the second interactive button can be the same as the button state of the first interactive button, or can be set according to the default configuration, which is not limited in the present embodiment.
[0188] For the second interactive button, the user can perform an operation on the second interactive button to trigger the button state of the entire second interactive button, for example, adjust the button state of the microphone button, adjust the button state of the earpiece button. The target device can detect the operation performed on the second interactive button, and in response to the detected operation, adjust the button state of the second interactive button. Here, the second interactive button can include a set of second buttons, and by operating one button in the set of second buttons, the button that is operated in the set of second buttons can be adjusted, and the button associated with the button that is operated (for example, when the earpiece button is closed, the microphone button can also be closed) can also be adjusted.
[0189] Optionally, the target device can be executed with a third switching operation in the same or similar manner as in the foregoing embodiments to switch the interface currently displayed by the target device to the application interface of the second application. The voice control panel described above can be displayed on the application interface of the second application switched to. The button state of the first interactive button on the voice control panel can be the same as the button state of the second interactive button to ensure the continuity of voice interaction in the target voice room.
[0190] For example, for room 1 as shown in Figure 13 When the earpiece button of room 1 is clicked, the button state of the earpiece button changes from the open state to the closed state, and the button state of the microphone button is also adjusted to the closed state, as shown in Figure 14 At this time, if the team formation interface of the game team is returned to be displayed, the button state of the earpiece button and the button state of the microphone button on the team formation interface of the game team are also adjusted to the closed state, as shown in Figure 15 .
[0191] Exemplarily, the voice state of the voice room can be saved in the application background (for example, the voice background), and the voice state modification and voice state synchronization with the client can be performed through the long link message, so that the function of timely synchronizing the voice room state and the voice state of the voice application can be realized in some games or applications.
[0192] As shown in Figure 16 The process of synchronizing the voice state of the voice client to the game client can include the following steps:
[0193] Step S1602, the voice client changes the voice state of the voice room;
[0194] Step S1604, after the voice client modifies the voice state, sends a message modifying the voice state to the voice background through a network request;
[0195] Step S1606: After receiving the message sent by the voice client, the voice backend modifies the saved voice status of the voice room.
[0196] Step S1608: The voice backend pushes a notification of a change in voice status to the game client via a long link;
[0197] Step S1610: After receiving the notification, the game client requests the current voice status of the voice room from the voice backend.
[0198] Step S1612: The voice backend returns the current voice status of the voice room to the game client;
[0199] In step S1614, after receiving the current voice status of the voice room from the voice backend, the game client changes the saved current voice status of the voice room to be consistent with that of the voice backend, thereby achieving consistency with the voice status of the voice client.
[0200] Through the embodiments provided in this application, when switching application interfaces, the interactive buttons are displayed according to the button states of the synchronized interactive buttons, which can ensure the continuity of voice interaction in the voice room and improve the accuracy of information display.
[0201] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0202] According to another aspect of the embodiments of this application, a voice interaction control device for implementing the above-described voice interaction control method is also provided. Figure 17 This is a structural block diagram of an optional voice interaction control device according to an embodiment of this application, such as... Figure 17 As shown, the device may include:
[0203] The first display unit 1702 is used to display a target voice room in a first application, wherein the target voice room is used for voice interaction;
[0204] The pull-up unit 1704 is connected to the first display unit 1702 and is used to pull up the application interface of the second application in response to the operation performed on the target button in the target voice room.
[0205] The second display unit 1706, connected with the pulling unit 1704, is configured to display a voice control panel in the application interface of the second application, wherein the voice control panel is provided by the second application.
[0206] The first adjusting unit 1708, connected with the second display unit 1706, is configured to adjust a state of a voice interaction function corresponding to the first interaction button in the target voice room in response to an operation performed on the first interaction button of the voice control panel.
[0207] It should be noted that the first display unit 1702 in this embodiment can be configured to perform the step S202 described above, the pulling unit 1704 in this embodiment can be configured to perform the step S204 described above, the second display unit 1706 in this embodiment can be configured to perform the step S206 described above, and the first adjusting unit 1708 in this embodiment can be configured to perform the step S208 described above.
[0208] According to the embodiments provided in the present application, the target voice room is displayed in the first application, wherein the target voice room is used for voice interaction; the application interface of the second application is pulled up in response to an operation performed on the target button in the target voice room; the voice control panel is displayed in the application interface of the second application, wherein the voice control panel is provided by the second application; and the state of the voice interaction function corresponding to the first interaction button in the target voice room is adjusted in response to an operation performed on the first interaction button of the voice control panel. The embodiments provided in the present application solve the problem that the voice interaction control in the related art is not timely due to the need for manual authorization to open the permission of the floating window, improve the convenience of voice interaction control, and improve the timeliness of voice interaction.
[0209] As an optional implementation, the first adjusting unit includes:
[0210] The first adjusting module is configured to, in response to an operation performed on the first interaction button of the voice control panel, adjust the voice playing function corresponding to the earpiece button in the target voice room to an open state in a case where the first interaction button includes the earpiece button and the earpiece button is in the open state.
[0211] Optional examples of the present embodiment can refer to the examples shown in the voice interaction control method described above, and will not be described herein again.
[0212] As an optional implementation, the apparatus described above further includes:
[0213] The first playing unit is configured to, in response to an operation performed on the first interactive button on the voice control panel, adjust the state of the voice interactive function in the target voice room corresponding to the first interactive button, and then play the voice generated in the target voice room when the voice playing function in the target team corresponding to the target voice room in the second application is in the closed state while displaying the application interface of the second application; or
[0214] The second playing unit is configured to, in response to an operation performed on the first interactive button on the voice control panel, adjust the state of the voice interactive function in the target voice room corresponding to the first interactive button, and then play the voice generated in the target voice room and the voice generated in the target team simultaneously when the voice playing function in the target team corresponding to the target voice room in the second application is in the open state while displaying the application interface of the second application.
[0215] Optional examples of the present embodiment can refer to the examples shown in the above-mentioned voice interactive control method, which will not be repeated here in the present embodiment.
[0216] As an optional embodiment, the above-mentioned device further comprises:
[0217] The first sending unit is configured to, in response to an operation performed on the target button in the target voice room, pull up the application interface of the second application, and then send the voice generated in the target voice room to the first team object in the target team, wherein the target team is a team corresponding to the target voice room in the second application, and the first team object is an object in the target team that is allowed to listen to the sound generated in the target voice room; or
[0218] The second sending unit is configured to, in response to an operation performed on the target button in the target voice room, pull up the application interface of the second application, and then send the sound generated by the second team object in the target team to the first room object in the target voice room, wherein the target team is a team corresponding to the target voice room in the second application, the second team object is an object in the target team that is allowed to play voice in the target voice room, and the first room object is an object in the target voice room that is allowed to listen to the sound generated in the target team.
[0219] Optional examples of the present embodiment can refer to the examples shown in the above-mentioned voice interactive control method, which will not be repeated here in the present embodiment.
[0220] As an optional embodiment, the first adjusting unit comprises:
[0221] The second adjusting module is configured to, in response to an operation performed on the first interaction button on the voice control panel, adjust a voice collection function corresponding to the first microphone button in the target voice room to an open state, in a case where the first interaction button comprises the first microphone button and the first microphone button is in the open state.
[0222] Optional examples of the present embodiment can refer to the examples shown in the voice interaction control method described above, which will not be repeated here in the present embodiment.
[0223] As an optional embodiment, the device described above further comprises:
[0224] The third sending unit is configured to, in a case where the second microphone button on the application interface of the second application is in the open state, send the sound collected by the target device to a third team object in a target team, wherein the target team is a team corresponding to the target voice room in the second application, the third team object is an object in the target team that is allowed to listen to the voice generated in the target team, the second microphone button is used to control the state of the voice collection function in the target team, and the target device is a device running the first application and the second application.
[0225] Optional examples of the present embodiment can refer to the examples shown in the voice interaction control method described above, which will not be repeated here in the present embodiment.
[0226] As an optional embodiment, the second display unit comprises:
[0227] The first display module is configured to display a voice control panel in the application interface of the second application, and display the first interaction button in the voice control panel, wherein the button state of the first interaction button is the same as the button state of the second interaction button in the target voice room, and the first interaction button and the second interaction button are used to control the state of the same voice interaction function in the target voice room.
[0228] Optional examples of the present embodiment can refer to the examples shown in the voice interaction control method described above, which will not be repeated here in the present embodiment.
[0229] As an optional embodiment, the device described above further comprises:
[0230] The obtaining unit is configured to, after pulling up the application interface of the second application in response to an operation performed on the target button in the target voice room, obtain a long link message from the background server through a long link between the target device and the background server of the first application, wherein the target device is a device running the first application and the second application, and the long link message carries indication information of the button state of the second interaction button.
[0231] Optional examples of the present embodiment can refer to the examples shown in the above-mentioned control method of voice interaction, which will not be repeated here in the present embodiment.
[0232] As an optional embodiment, the pulling-up unit comprises:
[0233] The second display module is configured to display a virtual character list in the first application in response to an operation performed on a jump button in the target voice room, wherein the virtual character list comprises character information of at least one virtual character allowed to be used by the running second application.
[0234] The pulling-up module is configured to pull up an application interface of the second application in response to an operation performed on character information of a target virtual character in the virtual character list, wherein the virtual character used by the running second application is the target virtual character.
[0235] Optional examples of the present embodiment can refer to the examples shown in the above-mentioned control method of voice interaction, which will not be repeated here in the present embodiment.
[0236] As an optional embodiment, the above-mentioned device further comprises:
[0237] The first switching unit is configured to switch to display the target voice room in response to a detected first switching operation after adjusting a state of a voice interaction function corresponding to the first interaction button in the target voice room in response to an operation performed on the first interaction button on the voice control panel.
[0238] The third display unit is configured to display a second interaction button in the target voice room, wherein a button state of the second interaction button is the same as a button state of the first interaction button, and the first interaction button and the second interaction button are used to control a state of the same voice interaction function in the target voice room.
[0239] Optional examples of the present embodiment can refer to the examples shown in the above-mentioned control method of voice interaction, which will not be repeated here in the present embodiment.
[0240] As an optional embodiment, the above-mentioned device further comprises:
[0241] The second switching unit is configured to switch to display the target voice room in response to a detected second switching operation after adjusting a state of a voice interaction function corresponding to the first interaction button in the target voice room in response to an operation performed on the first interaction button on the voice control panel.
[0242] The fourth display unit is configured to display a second interaction button in the target voice room, wherein the first interaction button and the second interaction button are used to control a state of the same voice interaction function in the target voice room.
[0243] a second adjusting unit, configured to adjust a button state of the second interactive button in response to an operation performed on the second interactive button; and a third switching unit, configured to switch to an application interface of a second application in response to a detected third switching operation, and display the voice control panel on the application interface of the second application.
[0244] a fifth displaying unit, configured to display the first interactive button in the voice control panel, wherein the button state of the first interactive button is the same as the adjusted button state of the second interactive button.
[0245] Optional examples of the present embodiment can refer to the examples shown in the above-mentioned voice interaction control method, which will not be repeated here in the present embodiment.
[0246] According to still another aspect of the embodiments of the present application, an electronic device for implementing the above-mentioned voice interaction control method is also provided, which can be a terminal device or a server as shown. Figure 1 As shown, the electronic device includes a memory 1802 and a processor 1804, the memory 1802 stores a computer program, and the processor 1804 is configured to execute the steps in any of the above-mentioned method embodiments by the computer program. Figure 18
[0247] Optionally, in the present embodiment, the above-mentioned electronic device can be located in at least one of a plurality of network devices in a computer network.
[0248] Optionally, in the present embodiment, the above-mentioned processor can be configured to execute the following steps by the computer program:
[0249] S1, display a target voice room in a first application, wherein the target voice room is used for voice interaction;
[0250] S2, in response to an operation performed on a target button in the target voice room, pull up an application interface of a second application;
[0251] S3, display a voice control panel in the application interface of the second application, wherein the voice control panel is provided by the second application;
[0252] S4, in response to an operation performed on a first interactive button on the voice control panel, adjust the state of a voice interaction function corresponding to the first interactive button in the target voice room.
[0253] Optionally, those skilled in the art can understand that Figure 18 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones (such as Android phones, iOS phones, etc.), tablets, PDAs, and other terminal devices such as MIDs and PADs. Figure 18 This does not limit the structure of the aforementioned electronic devices. For example, the electronic device may also include components that are more... Figure 18 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 18 The different configurations shown.
[0254] The memory 1802 can be used to store software programs and modules, such as the program instructions / modules corresponding to the voice interaction control method and device in this embodiment. The processor 1804 executes various functional applications and data processing by running the software programs and modules stored in the memory 1802, thereby realizing the aforementioned voice interaction control method. The memory 1802 may include high-speed random access 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 instances, the memory 1802 may further include memory remotely located relative to the processor 1804, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 1802 may be used, but is not limited to, for serializing files and compiling files, etc. As an example, such as... Figure 18 As shown, the memory 1802 may include, but is not limited to, the first display unit 1702, the pull-up unit 1704, the second display unit 1706, and the first adjustment unit 1708 from the voice interaction control device. Furthermore, it may include, but is not limited to, other module units from the voice interaction control device, which will not be elaborated upon in this example.
[0255] Optionally, the transmission device 1806 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1806 includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 1806 is a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0256] In addition, the above-mentioned electronic device also includes: a display 1808 for displaying the application interface of the first application and the application interface of the second application; and a connection bus 1810 for connecting the various module components in the above-mentioned electronic device.
[0257] In other embodiments, the aforementioned terminal device or server can be a node in a distributed system, wherein the distributed system can be a blockchain system, which is a distributed system formed by connecting multiple nodes through network communication. The nodes can form a peer-to-peer (P2P) network, and any form of computing device, such as a server, terminal, or other electronic device, can become a node in the blockchain system by joining this peer-to-peer network.
[0258] According to one aspect of this application, a computer program product is provided, comprising a computer program / instructions containing program code for performing the methods shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication section 1909, and / or installed from a removable medium 1911. When the computer program is executed by a central processing unit 1901, it performs various functions provided in the embodiments of this application. The above-described embodiment numbers are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0259] Figure 19 A schematic block diagram of a computer system architecture for implementing embodiments of the present application is shown. Figure 19 As shown, the computer system 1900 includes a central processing unit (CPU) 1901, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 1902 or programs loaded from storage section 1908 into random access memory (RAM) 1903. The RAM 1903 also stores various programs and data required for system operation. The CPU 1901, ROM 1902, and RAM 1903 are interconnected via a bus 1904. An input / output interface 1905 (I / O interface) is also connected to the bus 1904.
[0260] The following components are connected to the input / output interface 1905: an input part 1906 including a keyboard, a mouse, and the like; an output part 1907 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage part 1908 including a hard disk, and the like; and a communication part 1909 including a network interface card such as a local area network card, a modem, and the like. The communication part 1909 performs communication processing via a network such as the Internet. A drive 1910 is also connected to the input / output interface 1905 as necessary. A removable media 1911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, and the like is attached to the drive 1910 as necessary, so that a computer program read therefrom is installed in the storage part 1908 as necessary.
[0261] In particular, according to embodiments of the present application, the processes described in the various method flowcharts can be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program code for executing the methods illustrated in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication part 1909, and / or installed from the removable media 1911. When the computer program is executed by the central processing unit 1901, various functions defined in the system of the present application are performed.
[0262] It should be noted that, Figure 19 The computer system 1900 of the electronic device shown is merely an example and should not impose any limitation on the functions and usage range of embodiments of the present application.
[0263] According to an aspect of the present application, a computer readable storage medium is provided, from which a processor of a computer device reads computer instructions, and the processor executes the computer instructions to cause the computer device to perform the method provided in various optional implementations in the above embodiments.
[0264] Optionally, in the present embodiment, the above computer readable storage medium can be configured to store a computer program for performing the following steps:
[0265] S1, displaying a target voice room in a first application, wherein the target voice room is used for voice interaction;
[0266] S2, in response to an operation performed on a target button in the target voice room, pulling up an application interface of a second application;
[0267] S3, display a voice control panel in the application interface of the second application, wherein the voice control panel is provided by the second application;
[0268] S4, in response to an operation performed on the first interaction button on the voice control panel, adjust the state of the voice interaction function in the target voice room corresponding to the first interaction button.
[0269] Optionally, in the embodiment, all or part of the steps in the various methods of the above embodiments can be understood by those skilled in the art as being completed by the program instructing the hardware related to the terminal device, and the program can be stored in a computer readable storage medium, which can include a flash disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0270] The integrated units in the above embodiments, if realized in the form of software function units and sold or used as independent products, can be stored in the above computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the parts that make contributions to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing one or more computer devices (which can be personal computers, servers or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0271] In the above embodiments of the present application, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.
[0272] In the several embodiments provided by the present application, it should be understood that the disclosed client can be implemented in other ways. Of course, the above device embodiment is only illustrative, for example, the division of the units is only a logical function division, and there can be another division manner in actual implementation, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, unit or module, and can be electrical or other forms.
[0273] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, i.e., they can be located in one place, or can be distributed on multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
[0274] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0275] The above is only the preferred embodiment of the present application, and it should be pointed out that, for those skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, which should be considered as the protection scope of the present application.
Claims
1. A voice interaction control method, characterized in that, include: The target voice room is displayed in the first application, wherein the target voice room is used for voice interaction; In response to an operation performed on a target button in the target voice room, the application interface of the second application is launched. A voice control panel is displayed in the application interface of the second application, wherein the voice control panel is provided by the second application; In response to an operation performed on the first interactive button on the voice control panel, the state of the voice interaction function corresponding to the first interactive button in the target voice room is adjusted.
2. The method according to claim 1, characterized in that, The step of adjusting the state of the voice interaction function corresponding to the first interaction button in the target voice room in response to an operation performed on the first interaction button on the voice control panel includes: In response to an operation performed on the first interactive button on the voice control panel, if the first interactive button includes an earpiece button and the earpiece button is in the on state, the voice playback function corresponding to the earpiece button in the target voice room is adjusted to the on state.
3. The method according to claim 2, characterized in that, After adjusting the state of the voice interaction function corresponding to the first interaction button in the target voice room in response to an operation performed on the first interaction button on the voice control panel, the method further includes: If the voice playback function in the target team corresponding to the target voice room is turned off in the second application, the voice generated in the target voice room will be played while the application interface of the second application is displayed; or... When the voice playback function in the target team corresponding to the target voice room is enabled in the second application, the voice generated in the target voice room and the voice generated in the target team are played simultaneously while the application interface of the second application is displayed.
4. The method according to claim 1, characterized in that, After launching the application interface of the second application in response to an operation performed on a target button in the target voice room, the method further includes: The speech generated in the target speech room is sent to a first team object in the target team, wherein the target team is the team corresponding to the target speech room in the second application, and the first team object is an object in the target team that is allowed to listen to the sound generated in the target speech room; or... The sound generated by the second team object in the target team is sent to the first room object in the target voice room, wherein the target team is the team corresponding to the target voice room in the second application, the second team object is the object in the target team that is allowed to play voice in the target voice room, and the first room object is the object in the target voice room that is allowed to listen to the sound generated by the target team.
5. The method according to claim 1, characterized in that, The step of adjusting the state of the voice interaction function corresponding to the first interaction button in the target voice room in response to an operation performed on the first interaction button on the voice control panel includes: In response to an operation performed on the first interactive button on the voice control panel, if the first interactive button includes a first microphone button and the first microphone button is in the on state, the voice acquisition function corresponding to the first microphone button in the target voice room is adjusted to the on state.
6. The method according to claim 5, characterized in that, The method further includes: When the second microphone button on the application interface of the second application is turned on, the sound collected by the target device is sent to the third team object in the target team. The target team is the team in the second application that corresponds to the target voice room, and the third team object is the object in the target team that is allowed to listen to the voice generated in the target team. The second microphone button is used to control the state of the voice collection function in the target team, and the target device is the device running the first application and the second application.
7. The method according to any one of claims 1 to 6, characterized in that, The step of displaying the voice control panel in the application interface of the second application includes: The voice control panel is displayed in the application interface of the second application, and the first interactive button is displayed in the voice control panel. The button state of the first interactive button is the same as the button state of the second interactive button in the target voice room. The first interactive button and the second interactive button are used to control the state of the same voice interaction function in the target voice room.
8. The method according to claim 7, characterized in that, After launching the application interface of the second application in response to an operation performed on a target button in the target voice room, the method further includes: By establishing a long connection between the target device and the backend server of the first application, a long connection message is obtained from the backend server, wherein the target device is a device running the first application and the second application, and the long connection message carries indication information of the button state of the second interactive button.
9. The method according to claim 7, characterized in that, The step of launching the application interface of the second application in response to an operation performed on a target button in the target voice room includes: In response to an operation performed on the jump button in the target voice room, a list of virtual characters is displayed in the first application, wherein the list of virtual characters contains character information of at least one virtual character that is allowed to be used by the second application; In response to an operation performed on the character information of the target virtual character in the list of virtual characters, the application interface of the second application is launched, wherein the virtual character used to run the second application is the target virtual character.
10. The method according to any one of claims 1 to 6, characterized in that, After adjusting the state of the voice interaction function corresponding to the first interaction button in the target voice room in response to an operation performed on the first interaction button on the voice control panel, the method further includes: In response to the detected first switching operation, the system switches to displaying the target voice room and displays a second interaction button in the target voice room. The button state of the second interaction button is the same as that of the first interaction button. The first interaction button and the second interaction button are used to control the state of the same voice interaction function in the target voice room.
11. The method according to any one of claims 1 to 6, characterized in that, After adjusting the state of the voice interaction function corresponding to the first interaction button in the target voice room in response to an operation performed on the first interaction button on the voice control panel, the method further includes: In response to the detected second switching operation, the system switches to displaying the target voice room and displays a second interaction button in the target voice room, wherein the first interaction button and the second interaction button are used to control the state of the same voice interaction function in the target voice room; In response to the operation performed on the second interactive button, adjust the button state of the second interactive button; In response to the detected third switching operation, the system switches to display the application interface of the second application, displays the voice control panel on the application interface of the second application, and displays the first interactive button in the voice control panel, wherein the button state of the first interactive button is the same as the button state of the second interactive button after adjustment.
12. A voice-interactive control device, characterized in that, include: A first display unit is configured to display a target voice room in a first application, wherein the target voice room is used for voice interaction. A pull-up unit is used to pull up the application interface of the second application in response to an operation performed on a target button in the target voice room; The second display unit is used to display a voice control panel in the application interface of the second application, wherein the voice control panel is provided by the second application; The first adjustment unit is used to adjust the state of the voice interaction function corresponding to the first interaction button in the target voice room in response to an operation performed on the first interaction button on the voice control panel.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method described in any one of claims 1 to 11.
14. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the method described in any one of claims 1 to 11.
15. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 11 through the computer program.
Citation Information
Patent Citations
Method and apparatus of voice control smart device and smart device
CN107277225A
Voice control method for application program, intelligent terminal and computer readable storage medium
CN108984146A