Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art to a certain extent.
Therefore, an object of the embodiments of the present invention is to provide a method for switching a speech room scene, which implements intelligent switching of speech room scenes and improves the user experience.
Another object of the embodiment of the present invention is to provide a voice room scene switching system.
In order to achieve the technical purpose, the technical scheme adopted by the embodiment of the invention comprises the following steps:
in a first aspect, an embodiment of the present invention provides a method for switching a speech room scene, including the following steps:
Responding to a voice room entering request of a user, acquiring a first client version of the user through a server, and judging whether the first client version is matched with a first scene mode of a target voice room or not;
when the first client version is not matched with the first scene mode, judging whether the first scene mode is configured with an alternative scene mode compatible with the first client version;
when the first scene mode is configured with the corresponding alternative scene mode, authorizing the user to enter the target voice room, and switching the target voice room into the alternative scene mode on the client of the user;
And when the first scene mode is not configured with the corresponding alternative scene mode, acquiring a second client version compatible with the first scene mode, and guiding the user to update the client to the second client version.
Further, in one embodiment of the present invention, the step of obtaining, by the server, the first client version of the user and determining whether the first client version matches the first scene mode of the target speech room specifically includes:
analyzing the voice room entering request through the server, and determining the first client version and the target voice room;
Acquiring the current first scene mode of the target voice room, and determining the minimum version requirement of the first scene mode configuration;
Judging whether the first client version meets the minimum version requirement, if so, matching the first client version with the first scene mode, and if not, not matching the first client version with the first scene mode.
Further, in an embodiment of the present invention, the method for switching a speech room scene further includes a step of pre-configuring the alternative scene mode, which specifically includes:
when the target voice room is newly added with the first scene mode, determining a first scene layout and a first wheat number of the first scene mode;
Acquiring an existing second scene mode of the target voice room, and determining a second scene layout and a second wheat number of the second scene mode;
and when the similarity between the first scene layout and the second scene layout is greater than or equal to a preset first threshold, and the first number of wheat bits is consistent with the second number of wheat bits, configuring the second scene mode as the alternative scene mode.
Further, in one embodiment of the present invention, the method for switching a speech room scene further includes the steps of:
when the first scene mode is not configured with the corresponding alternative scene mode and the user is an administrator of the target voice room, a scene mode list supported by the target voice room is obtained and pushed to the client of the user, and then the target voice room is switched to a third scene mode according to the selection operation of the user.
Further, in one embodiment of the present invention, the method for switching a speech room scene further includes the steps of:
and when the number of the wheat bits in the third scene mode is inconsistent with that of the wheat bits in the first scene mode, clearing an original wheat bit sequence of the target voice room, and guiding a host on the original wheat bit sequence to resharpen.
Further, in one embodiment of the present invention, the method for switching a speech room scene further includes the steps of:
When the target voice room is switched to the third scene mode, acquiring the client network states of other users in the target voice room;
and when the network state of the client is normal, controlling the other users to reenter the target voice room through the server, and switching the scene mode displayed by the clients of the other users into the third scene mode.
In a second aspect, an embodiment of the present invention provides a speech room scene switching system, including:
The client version acquisition module is used for responding to a voice room entry request of a user, acquiring a first client version of the user through a server and judging whether the first client version is matched with a first scene mode of a target voice room or not;
The alternative scene mode determining module is used for judging whether the first scene mode is configured with an alternative scene mode compatible with the first client version or not when the first client version is not matched with the first scene mode;
An alternative scene mode switching module, configured to authorize the user to enter the target voice room when the first scene mode is configured with the corresponding alternative scene mode, and switch the target voice room to the alternative scene mode on the client of the user;
And the client version updating module is used for acquiring a second client version compatible with the first scene mode when the first scene mode is not configured with the corresponding alternative scene mode, and guiding the user to update the client to the second client version.
Further, in one embodiment of the present invention, the speech room scene switching system further includes an alternative scene mode configuration module, which is specifically configured to:
when the target voice room is newly added with the first scene mode, determining a first scene layout and a first wheat number of the first scene mode;
Acquiring an existing second scene mode of the target voice room, and determining a second scene layout and a second wheat number of the second scene mode;
and when the similarity between the first scene layout and the second scene layout is greater than or equal to a preset first threshold, and the first number of wheat bits is consistent with the second number of wheat bits, configuring the second scene mode as the alternative scene mode.
In a third aspect, an embodiment of the present invention provides a speech room scene switching device, including:
at least one processor;
At least one memory for storing at least one program;
The at least one program, when executed by the at least one processor, causes the at least one processor to implement a speech room scene switching method as described above.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, in which a processor executable program is stored, where the processor executable program is used to perform a speech room scene switching method as described above when executed by a processor.
The advantages and benefits of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
In the embodiment of the invention, a first client version of a user is obtained through a server in response to a voice room entry request of the user, whether the first client version is matched with a first scene mode of a target voice room or not is judged, when the first client version is not matched with the first scene mode, whether the first scene mode is configured with an alternative scene mode compatible with the first client version or not is judged, when the first scene mode is configured with a corresponding alternative scene mode, the user is authorized to enter the target voice room, the target voice room is switched to the alternative scene mode on the client of the user, when the first scene mode is not configured with the corresponding alternative scene mode, a second client version compatible with the first scene mode is obtained, and the user is guided to update the client to the second client version. The embodiment of the invention can solve the problem that the old version client is incompatible with the new scene mode, realize intelligent switching of the voice room scene and improve the use experience of the user.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention. The step numbers in the following embodiments are set for convenience of illustration only, and the order between the steps is not limited in any way, and the execution order of the steps in the embodiments may be adaptively adjusted according to the understanding of those skilled in the art.
In the description of the present invention, the plurality means two or more, and if the description is made to the first and second for the purpose of distinguishing technical features, it should not be construed as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the precedence of the indicated technical features. Furthermore, unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art.
Referring to fig. 1, an embodiment of the present invention provides a method for switching a speech room scene, which specifically includes the following steps:
s101, responding to a voice room entering request of a user, acquiring a first client version of the user through a server, and judging whether the first client version is matched with a first scene mode of a target voice room.
Specifically, when a user enters a voice room, a voice room entering request is sent, the request message carries client version information used by the user, and whether the client version information of the user is matched with a room scene mode set by the current voice room or not is judged through a server.
Further as an optional implementation manner, the step of obtaining, by the server, the first client version of the user and determining whether the first client version matches the first scene mode of the target speech room specifically includes:
a1, analyzing a voice room entering request through a server, and determining a first client version and a target voice room;
a2, acquiring a current first scene mode of the target voice room, and determining the minimum version requirement of the first scene mode configuration;
A3, judging whether the first client version meets the minimum version requirement, if so, matching the first client version with the first scene mode, and if not, matching the first client version with the first scene mode.
Specifically, a version number of a client sending a request and a target voice room ID (identity) of the target voice room are packaged in a voice room entry request message, a first client version and the target voice room can be determined by analyzing the message through a server, and then a current first scene mode of the target voice room is obtained. In the embodiment of the invention, each scene mode is preconfigured with the minimum version requirement, and when the obtained first client version meets the minimum version requirement of the first scene mode, the two modes are matched, otherwise, the two modes are not matched. For example, if the minimum version requirement of the current scene mode configuration of the target voice room is v3.1.0, the requirement is not satisfied when the client version number of the user is before v3.1.0.
And if the first client version of the user meets the minimum version requirement of the current scene mode configuration of the target voice room, directly authorizing the user to enter the target voice room, and if the first client version of the user does not meet the minimum version requirement, entering a subsequent judging step.
S102, when the first client version is not matched with the first scene mode, judging whether the first scene mode is configured with an alternative scene mode compatible with the first client version.
Further as an optional implementation manner, the speech room scene switching method further includes a step of pre-configuring an alternative scene mode, which specifically includes:
B1, when a first scene mode is newly added to a target voice room, determining a first scene layout and a first wheat number of the first scene mode;
b2, acquiring an existing second scene mode of the target voice room, and determining a second scene layout and a second wheat number of the second scene mode;
b3, when the similarity between the first scene layout and the second scene layout is greater than or equal to a preset first threshold value, and the first number of wheat bits is consistent with the second number of wheat bits, configuring the second scene mode as an alternative scene mode.
Specifically, when the technology iterates the newly added room scene mode, whether the existing scene mode of the voice room has a scene similar to the newly added scene mode or not is checked, if the existing scene mode of the voice room has a similar layout, the number of wheat bits is the same, and the like, if so, the existing scene mode is set as an alternative scene mode compatible with the newly added scene mode to the low-version client, so that a user of the low-version client can enter the voice room as much as possible, the scene mode is switched in a self-adaptive mode, and the use experience of the user is improved.
And S103, when the first scene mode is configured with a corresponding alternative scene mode, authorizing the user to enter the target voice room, and switching the target voice room into the alternative scene mode on the client of the user.
S104, when the first scene mode is not configured with the corresponding alternative scene mode, acquiring a second client version compatible with the first scene mode, and guiding a user to update the client to the second client version.
Specifically, whether the first scene mode of the target voice room is configured with an alternative scene mode compatible with the low-version client is judged, if the first scene mode is configured with the alternative scene mode compatible with the low-version client and the alternative scene mode supports the client version of the user, the user is authorized to enter, and meanwhile the target voice room is switched to the alternative scene mode on the client of the user, namely, the room scene mode acquired by the user is the compatible alternative scene mode. If the first scene mode is not configured with the alternative scene mode compatible with the low-version client, the user fails to enter the voice room, and meanwhile, the current first scene mode of the target voice room is prompted to only support the client of the new version, and the user is guided to update the client.
Further as an optional implementation manner, the voice room scene switching method further includes the following steps:
S105, when the first scene mode is not configured with the corresponding alternative scene mode, and the user is an administrator of the target voice room, a scene mode list supported by the target voice room is obtained and pushed to the client of the user, and then the target voice room is switched to the third scene mode according to the selection operation of the user.
Specifically, when the first scene mode is not configured with the corresponding alternative scene mode, if the user requesting to enter the voice room is an administrator of the target voice room (a user added by the anchor or the anchor and capable of modifying the setting items in the voice room), a scene mode list capable of being set by the target voice room is returned for the user to select, and then the scene of the target voice room is switched.
Further as an optional implementation manner, the voice room scene switching method further includes the following steps:
s106, when the number of wheat bits in the third scene mode is inconsistent with that of the first scene mode, the original wheat bit sequence of the target voice room is emptied, and the host on the original wheat bit sequence is guided to resharpen.
Specifically, after the administrator switches the target voice room to the third scene mode through the scene mode list, if the number of the wheat bits of the third scene mode is inconsistent with that of the original first scene mode, the original wheat bit sequence is cleared, the wheat is turned off for the host/user who opens the wheat, and then the host/user is guided to turn on the wheat again, so that the problem that noise or asynchronism exists in the room audio after the switching to the new scene mode is avoided.
Further as an optional implementation manner, the voice room scene switching method further includes the following steps:
s107, when the target voice room is switched to a third scene mode, acquiring the client network states of other users in the target voice room;
s108, when the network state of the client is normal, controlling other users to reenter the target voice room through the server, and switching the scene mode displayed by the client of the other users into a third scene mode.
Specifically, under the condition of weak network, if the administrator of the target voice room switches the scene mode, the client of other users of the target voice room is subjected to network state self-checking, after the network is detected to be normal, the APP re-executes the room running process in the background, and if the acquired new scene mode of the target voice room is inconsistent with the scene mode currently displayed by the APP, the new scene mode is switched.
The method steps of the embodiments of the present invention are described above. It can be appreciated that the embodiment of the invention can solve the problem that the old version client is incompatible with the new scene mode, realize intelligent switching of the voice room scene and improve the use experience of the user. In addition, when the scene mode is switched, the wheat bit sequence is emptied for re-feeding if the difference between the front scene mode and the rear scene mode is larger, so that the problem that noise or asynchronism occurs in the room audio is avoided.
Referring to fig. 2, an embodiment of the present invention provides a speech room scene switching system, including:
The client version acquisition module is used for responding to a voice room entry request of a user, acquiring a first client version of the user through the server and judging whether the first client version is matched with a first scene mode of a target voice room or not;
The alternative scene mode determining module is used for judging whether the first scene mode is configured with an alternative scene mode compatible with the first client version or not when the first client version is not matched with the first scene mode;
The alternative scene mode switching module is used for authorizing a user to enter a target voice room when the first scene mode is configured with a corresponding alternative scene mode, and switching the target voice room into the alternative scene mode on a client of the user;
and the client version updating module is used for acquiring a second client version compatible with the first scene mode when the first scene mode is not configured with the corresponding alternative scene mode, and guiding a user to update the client to the second client version.
Further as an optional implementation manner, the speech room scene switching system further includes an alternative scene mode configuration module, which is specifically configured to:
When a first scene mode is newly added to a target voice room, determining a first scene layout and a first wheat number of the first scene mode;
acquiring a second scene mode of the target voice room, and determining a second scene layout and a second wheat number of the second scene mode;
And when the similarity between the first scene layout and the second scene layout is greater than or equal to a preset first threshold value, and the first number of wheat bits is consistent with the second number of wheat bits, configuring the second scene mode as an alternative scene mode.
The content in the method embodiment is applicable to the system embodiment, the functions specifically realized by the system embodiment are the same as those of the method embodiment, and the achieved beneficial effects are the same as those of the method embodiment.
Referring to fig. 3, an embodiment of the present invention provides a speech room scene switching device, including:
at least one processor;
At least one memory for storing at least one program;
The at least one program, when executed by the at least one processor, causes the at least one processor to implement a speech room scene switching method as described above.
The content in the method embodiment is applicable to the embodiment of the device, and the functions specifically realized by the embodiment of the device are the same as those of the method embodiment, and the obtained beneficial effects are the same as those of the method embodiment.
The embodiment of the invention also provides a computer readable storage medium, in which a processor executable program is stored, which when executed by a processor is used to perform a speech room scene switching method as described above.
The computer readable storage medium of the embodiment of the invention can execute the voice room scene switching method provided by the embodiment of the method of the invention, and can execute the steps of any combination implementation of the embodiment of the method, thereby having the corresponding functions and beneficial effects of the method.
Embodiments of the present invention also disclose a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions may be read from a computer-readable storage medium by a processor of a computer device, and executed by the processor, to cause the computer device to perform the method shown in fig. 1.
In some alternative embodiments, the functions/acts noted in the block diagrams may occur out of the order noted in the operational illustrations. For example, two blocks shown in succession may in fact be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality/acts involved. Furthermore, the embodiments presented and described in the flowcharts of the present invention are provided by way of example in order to provide a more thorough understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed, and in which sub-operations described as part of a larger operation are performed independently.
Furthermore, while the present invention has been described in the context of functional modules, it should be appreciated that, unless otherwise indicated, one or more of the functions and/or features described above may be integrated in a single physical device and/or software module or one or more of the functions and/or features may be implemented in separate physical devices or software modules. It will also be appreciated that a detailed discussion of the actual implementation of each module is not necessary to an understanding of the present invention. Rather, the actual implementation of the various functional modules in the apparatus disclosed herein will be apparent to those skilled in the art from consideration of their attributes, functions and internal relationships. Accordingly, one of ordinary skill in the art can implement the invention as set forth in the claims without undue experimentation. It is also to be understood that the specific concepts disclosed are merely illustrative and are not intended to be limiting upon the scope of the invention, which is to be defined in the appended claims and their full scope of equivalents.
The above functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or a part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the above-described method of the various embodiments of the present invention. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include an electrical connection (an electronic device) having one or more wires, a portable computer diskette (a magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium upon which the program described above is printed, as the program described above may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted, or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of techniques known in the art, discrete logic circuits with logic gates for implementing logic functions on data signals, application specific integrated circuits with appropriate combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
In the foregoing description of the present specification, reference has been made to the terms "one embodiment/example", "another embodiment/example", "certain embodiments/examples", and the like, means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the spirit and scope of the invention as defined by the appended claims and their equivalents.
While the preferred embodiment of the present application has been described in detail, the present application is not limited to the above embodiments, and various equivalent modifications and substitutions can be made by those skilled in the art without departing from the spirit of the present application, and these equivalent modifications and substitutions are intended to be included in the scope of the present application as defined in the appended claims.