CN101414948A - Method for using sound prop, server and client terminal - Google Patents
Method for using sound prop, server and client terminal Download PDFInfo
- Publication number
- CN101414948A CN101414948A CNA2008102278798A CN200810227879A CN101414948A CN 101414948 A CN101414948 A CN 101414948A CN A2008102278798 A CNA2008102278798 A CN A2008102278798A CN 200810227879 A CN200810227879 A CN 200810227879A CN 101414948 A CN101414948 A CN 101414948A
- Authority
- CN
- China
- Prior art keywords
- user
- mood
- audio files
- index
- mood index
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
The invention discloses a method for using a sound prop, a server and a client side thereof. The method comprises the steps as follows: the current mood index of the user is obtained; a corresponding sound file mark is searched according to the current mood index of the user and the sound prop used by the user; and the client side of relative user is indicated to play a corresponding sound file according to the sound file mark. The server comprises an obtaining module, a searching module and an indicating module. The client side comprises a sending module and a responding module. The embodiment of the invention searches and plays the sound file corresponding to the mood index and the sound prop by obtaining the mood index of the user when the user uses the sound prop, plays different sound files according to different moods of the user, ensures that the user can express the mood by the sound prop exactly and enhances the interactivity and the entertaining of a network game.
Description
Technical field
The present invention relates to computer realm, particularly a kind of method, server and client side who uses sound prop.
Background technology
Present all kinds of network interactive game or Internet chatrooms, all being provided with various game items uses for the user, the user can increase the interactive and enjoyment of recreation by using various stage properties to help own or disturbing others when playing or chat.
The occupation mode of present game item has multiple, great majority are all relevant with the particular game logic, have such as the road game in recreation " Fancy Match ": the stage property of once eliminating identical picture, make a concentrated effort to finish the stage property etc. of the stage property of progress and the schedule that slows down, these stage properties all design at vision or game logic.
A lot of users like opening sound equipment when playing, so the sound prop that these users wish hommization can be arranged is for its use, so that can give vent to mood when playing, or express oneself emotion better when chatting.But at present a lot of games systems, the user's that sound prop can not give expression to well mood, therefore, this field of sound prop still awaits development and use.
Summary of the invention
In order to increase the interactive and recreational of online game, the embodiment of the invention provides a kind of method, server and client side who uses sound prop.Described technical scheme is as follows:
A kind of method of using sound prop, described method comprises:
Obtain the sound prop of user's current mood exponential sum user use;
According to the sound prop that the described user of described user's current mood exponential sum uses, the sign of searching corresponding audio files, and indication associated user's client is play corresponding audio files according to the sign of described audio files.
The described mood index that obtains the user comprises:
Obtain user's mood information, described mood information comprises: the previous mood index of described user, or, described user's individualized signature;
If the described mood information previous mood index that is described user is then with the current mood index of the previous mood index of described user as described user;
If described mood information is user's individualized signature, then obtain user's current mood index according to default algorithm computation according to described individualized signature.
The described mood index that obtains the user comprises:
The mood index that the user is sent is as described user's current mood index.
After the described mood index that obtains the user, also comprise:
Obtaining the chat message that the user sends, according to the mood index of described chat message according to default algorithm computation user, is the described user's who calculates mood index with described user's current mood index update.
The sound prop that the described user of described current mood exponential sum according to described user uses, the sign of searching corresponding audio files, and indication associated user's client comprises according to the corresponding audio files of sign broadcast of described audio files:
According to described sound prop, find the pairing audio files group of described sound prop, in described audio files group, search the sign of the audio files corresponding with described mood index, send the sign of described audio files to associated user's client, indicate described associated user's client to play corresponding audio files according to the sign of described audio files.
A kind of server, described server comprises:
Acquisition module is used to obtain the sound prop that user's current mood exponential sum user uses;
Search module, be used for sound prop, the sign of searching corresponding audio files according to the described user's use of described user's current mood exponential sum;
Indicating module is used to indicate associated user's client to play corresponding audio files according to the sign of described audio files.
Described acquisition module comprises:
The mood information acquisition unit is used to obtain user's mood information, and described mood information comprises: the previous mood index of described user, or, described user's individualized signature;
Mood index acquiring unit is used for obtaining according to described mood information user's mood index; When described mood information is the previous mood index of described user, then with the current mood index of the previous mood index of described user as described user; When described mood information is user's individualized signature, then obtain user's current mood index according to default algorithm computation according to described individualized signature.
Described acquisition module specifically is used to receive the mood index that the user sends, and is the described user's who calculates mood index with described user's current mood index update.
Described game server also comprises:
Update module is used to obtain the chat message that the user sends, according to the mood index of described chat message according to default algorithm computation user, with the mood index that the calculates current mood index as described user.
The described module of searching specifically is used for according to described sound prop, finds the pairing audio files group of described sound prop, in described audio files group, searches the sign of the audio files corresponding with described mood index;
Described indicating module specifically is used for sending to associated user's client the sign of described audio files, indicates described associated user's client to play corresponding audio files according to the sign of described audio files.
A kind of client, described client comprises:
Sending module is used for sending the information of the sound prop that the user uses and the mood index that the user sends to game server;
Respond module is used for playing corresponding audio files according to the sign of described audio files when the sign of the audio files that receives described game server transmission.
The beneficial effect that the technical scheme that the embodiment of the invention provides is brought is:
The sound prop that uses by the mood exponential sum user who obtains the user, search and play and the pairing audio files of this mood exponential sum sound prop, different moods according to the user are play different audio files, make the user express mood accurately, increased the interactive and recreational of online game by sound prop.
Description of drawings
Fig. 1 is the method flow diagram of the use sound prop that provides in the embodiment of the invention 1;
Fig. 2 is the method flow diagram of the use sound prop that provides in the embodiment of the invention 2;
Fig. 3 is the structure chart of the server that provides in the embodiment of the invention 3;
Fig. 4 is the structure chart of the acquisition module of the server that provides in the embodiment of the invention 3;
Fig. 5 is the structure chart of the client that provides in the embodiment of the invention 3.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Embodiment 1
Present embodiment provides a kind of method of using sound prop, by the sound prop that the current mood exponential sum user who obtains the user uses, searches and plays and the pairing audio files of this mood exponential sum sound prop.Realized and to have play different audio files according to user's different moods, increased the interactive and recreational of online game.Referring to Fig. 1, concrete grammar is:
101: the user lands platform by client-side program, enters the room of recreation or chatroom.Client-side program the user is entered the room information send to game server, this moment, user client was just set up being connected of TCP with game server.
102: game server sends the request of the mood information of obtaining the user after confirming that the user enters the room to the mood server.
In the present embodiment, mood information can be nearest user mood index, the mood index when promptly once playing before the user; Perhaps user's individualized signature.For registered users, the mood index of mood information when once playing before this user; For new user, mood information is this user's individualized signature.
103: after the mood server is received the solicited message of game server, the mood information of storing is returned to game server.
104: after game server is received the mood information of returning, judge user's current mood index according to this mood information.Particularly, if what return is the previous mood index of user, then directly with the current mood index of the previous mood index of user as the user; If what receive is user's individualized signature, then adopt default algorithm computation user's current mood index, default algorithm can be filter algorithm, such as being keyword comparison method etc., promptly from user's individualized signature, extract keyword, compare, calculate user's mood index thus with the word finder of the judgement mood of presetting.
The division methods of user mood index can have multiple, such as, a kind of rough division methods is: glad, mood general and sad three kinds, the mood index of happiness is decided to be 3, and the mood index that mood is general is decided to be 2, and sad mood index is decided to be 1; Also can divide meticulously, for example divide 15 mood indexes, the mood index is 15 to show gladness, and the mood index is that 12 expressions are general glad, and by that analogy, the mood index is that 3 expressions are general sad, and the mood index is that 1 expression is very sad.
105-107: game server returns corresponding user profile to user client.After the user selected desk to sit down and confirms recreation beginning, the client-side program affirmation information that begins of will play automatically sent to game server.
108-109: the user is when chatting or carrying out game operation, and game server can also upgrade user's mood index.It is the chat message that game server is noted the user, adopt default algorithm computation user's mood index according to chat message, and in this locality real-time renewal user's current mood index, wherein Yu She algorithm can be filter algorithm, such as keyword comparison method etc.
110: when the user had used sound prop, client-side program used the information of this sound prop to send to game server the user.
111: game server is received the information of the sound prop that the user uses, sound prop according to user's use, and the current mood index of the user after 104 users' that obtain current mood index or the 108-109 renewal, the sign of searching corresponding audio files.Send the sign of this audio files to associated user's client.
Game server is when searching corresponding audio files, sound prop according to the user uses finds the pairing audio files group of this sound prop, then in the audio files group of correspondence, according to user's current mood index, the sign of searching corresponding audio files.
In embodiments of the present invention, every kind of sound prop correspondence an audio files group, audio files in each audio files group is corresponding one by one with the mood index, such as, with sound prop " laugh " is example, when the mood index has 15, in the pairing audio files group of sound prop " laugh " 15 audio files just should be arranged, and these 15 audio files are corresponding one by one with 15 mood indexes.For example the audio files of mood index 15 correspondences is for laughing, and the audio files of mood index 13 correspondences is for smiling.
Game server should correspondence the sign of audio files send to associated user's client after, associated user's client is searched corresponding audio files according to this locality that is identified at of this audio files, if having, then plays this audio files at local client.If no, then carrying out 112-113 downloads behind this audio files in client terminal playing from the sound prop server.
Wherein, the associated user comprises the user who uses stage property, can also comprise and associated all users of user that use stage property, such as other users that play together and the onlooker of recreation.
112-113: user client sends the request of downloading audio files to the sound prop server, and request is downloaded corresponding audio files by the back.
In like manner, when other associated users used sound prop, the processing method of game server was identical with said method, repeats no more herein.
The embodiment of the invention is by obtaining user's mood index, when the user uses sound prop, search and play and the pairing audio files of this mood exponential sum sound prop, different moods according to the user are play different audio files, make the user express mood accurately, increased the interactive and recreational of online game by sound prop.
Embodiment 2
Present embodiment provides a kind of method of using sound prop, in embodiment 1, is obtained user's current mood index by game server.In embodiments of the present invention, initiatively submit the mood index to by the user, referring to Fig. 2, concrete grammar is:
201: the user lands platform by client-side program, enters the room of recreation or chatroom, submits this mood index simultaneously to by client-side program.The user is entered the information in room to client-side program and the mood index of this user submission sends to game server, this moment, user client was just set up being connected of TCP with game server, and game server is preserved the current mood index of user's mood index as the user simultaneously.
202-204: game server returns corresponding user profile to user client.After the user selected desk to sit down and confirms recreation beginning, the client-side program affirmation information that begins of will play automatically sent to game server.
205: when the user had used sound prop, client-side program used the information of this sound prop and user's current mood index to send to game server the user.
In embodiments of the present invention, when user mood does not change, do not submit the mood index simultaneously to when using sound prop, then client sends to game server with user's current mood index; When variation has taken place in user mood, when using sound prop, also submitted the mood index to, then client mood index that the user is submitted to sends to game server as user's current mood.
206: game server is received the information of the sound prop that the user uses and the mood index that the user submits to, the mood index that the user is submitted to is as user's current mood index, according to the sound prop of user's use and user's current mood index, the sign of searching corresponding audio files.And send the sign of this audio files to the associated user.
In embodiments of the present invention, the user is by submitting the mood index to when using sound prop, can oneself determine the result of use of sound prop, the mood index of determining when logining such as the user is very delight, but when playing, the teammate mismatches, then the user can use " laugh " stage property, submitting the mood index simultaneously to is 2, with the mood that declares one's dissatisfaction, after game server was received sound prop and mood index, the mood index of submitting to this user was the current mood index, search the back and determine that this should return the sign of the audio files of " sneer ", then sends the sign of this audio files to the associated user.
After associated user's client is received the sign of this audio files, play corresponding audio files, when associated user's client does not have corresponding audio files, then carry out 207-208 and download this audio files.
207-208: user client sends the request of downloading audio files to the sound prop server, and request is downloaded corresponding audio files by the back.
In like manner, when other associated users used sound prop, the processing method of game server was identical with said method, repeats no more herein.
What need supplementary notes is, the method of the embodiment of the invention can be carried out combination with the method for embodiment 1, be about to game server and obtain the processing method of user's current mood index as acquiescence, also can initiatively submit simultaneously the mood index of oneself by the user to, when the user had submitted the mood index to, the mood index of submitting to the user served as preferential.When upgrading user's mood index, can note user's chat message by game server, adopt default algorithm computation user's mood index according to chat message, and in this locality real-time renewal user's mood index.
The sound prop that the mood exponential sum that the embodiment of the invention is submitted to according to the user is used, search and play and the pairing audio files of this mood exponential sum sound prop, different moods according to the user are play different audio files, make the user express mood accurately, increased the interactive and recreational of online game by sound prop.
Embodiment 3
Referring to Fig. 3, present embodiment provides a kind of server, and this server comprises:
Indicating module 303 is used to indicate associated user's client to play corresponding audio files according to the sign of this audio files.
In embodiments of the present invention, this server can obtain user's mood information to the mood server requests, judges user's current mood index according to user's mood information.At this moment, referring to Fig. 4, this acquisition module 301 comprises:
Mood information acquisition unit 301a is used to obtain user's mood information, and this mood information comprises: the previous mood index of this user, or, this user's individualized signature;
Mood index acquiring unit 301b is used for obtaining according to this mood information user's mood index; When this mood information was last user mood index, user mood index that then should the last time was as this user's current mood index; When this mood information is user's individualized signature, then obtain user's mood index according to default algorithm computation according to this individualized signature.
Can also initiatively send the mood index by the user in embodiments of the present invention to this server, at this moment, should
In addition, in embodiments of the present invention, in the process that the user plays, this server can be according to the real-time renewal user's of user's chat record mood index, and therefore, this server also comprises:
Further, in embodiments of the present invention, every kind of sound prop correspondence an audio files group, the audio files in each audio files group is corresponding one by one with the mood index.
Therefore, this searches module 302, specifically is used for according to this sound prop, finds the pairing audio files group of this sound prop, and in this audio files group, according to this mood index, the sign of searching corresponding audio files.
This indicating module 303 specifically is used for sending to associated user's client the sign of this audio files, and indication associated user's client is play corresponding audio files according to the sign of this audio files.
Accordingly, referring to Fig. 5, user client comprises:
Sending module 501 is used for sending the information of the sound prop that the user uses and the mood index that the user sends to server;
Respond module 502 is used for playing corresponding audio files according to the sign of this audio files when the sign of the audio files that receives the server transmission.
The embodiment of the invention is by increasing the mood index that acquisition module obtains the user in server, when the user uses sound prop, search and play and the pairing audio files of this mood exponential sum sound prop, different moods according to the user are play different audio files, make the user express mood accurately, increased the interactive and recreational of online game by sound prop.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (11)
1, a kind of method of using sound prop is characterized in that, described method comprises:
Obtain the sound prop of user's current mood exponential sum user use;
According to the sound prop that the described user of described user's current mood exponential sum uses, the sign of searching corresponding audio files, and indication associated user's client is play corresponding audio files according to the sign of described audio files.
2, a kind of method of using sound prop according to claim 1 is characterized in that, the described mood index that obtains the user comprises:
Obtain user's mood information, described mood information comprises: the previous mood index of described user, or, described user's individualized signature;
If the described mood information previous mood index that is described user is then with the current mood index of the previous mood index of described user as described user;
If described mood information is user's individualized signature, then obtain user's current mood index according to default algorithm computation according to described individualized signature.
3, a kind of method of using sound prop according to claim 1 is characterized in that, the described mood index that obtains the user comprises:
The mood index that the user is sent is as described user's current mood index.
4, a kind of method of using sound prop according to claim 1 is characterized in that, after the described mood index that obtains the user, also comprises:
Obtaining the chat message that the user sends, according to the mood index of described chat message according to default algorithm computation user, is the described user's who calculates mood index with described user's current mood index update.
5, a kind of method of using sound prop according to claim 1, it is characterized in that, the sound prop that the described user of described current mood exponential sum according to described user uses, search the sign of corresponding audio files, and indication associated user's client comprises according to the corresponding audio files of sign broadcast of described audio files:
According to described sound prop, find the pairing audio files group of described sound prop, in described audio files group, search the sign of the audio files corresponding with described mood index, send the sign of described audio files to associated user's client, indicate described associated user's client to play corresponding audio files according to the sign of described audio files.
6, a kind of server is characterized in that, described game server comprises:
Acquisition module is used to obtain the sound prop that user's current mood exponential sum user uses;
Search module, be used for sound prop, the sign of searching corresponding audio files according to the described user's use of described user's current mood exponential sum;
Indicating module is used to indicate associated user's client to play corresponding audio files according to the sign of described audio files.
7, a kind of server according to claim 6 is characterized in that, described acquisition module comprises:
The mood information acquisition unit is used to obtain user's mood information, and described mood information comprises: the previous mood index of described user, or, described user's individualized signature;
Mood index acquiring unit is used for obtaining according to described mood information user's mood index; When described mood information is the previous mood index of described user, then with the current mood index of the previous mood index of described user as described user; When described mood information is user's individualized signature, then obtain user's current mood index according to default algorithm computation according to described individualized signature.
8, a kind of server according to claim 6 is characterized in that,
Described acquisition module specifically is used to receive the mood index that the user sends, and is the described user's who calculates mood index with described user's current mood index update.
9, a kind of server according to claim 6 is characterized in that, described game server also comprises:
Update module is used to obtain the chat message that the user sends, according to the mood index of described chat message according to default algorithm computation user, with the mood index that the calculates current mood index as described user.
10, a kind of server according to claim 6 is characterized in that,
The described module of searching specifically is used for according to described sound prop, finds the pairing audio files group of described sound prop, in described audio files group, searches the sign of the audio files corresponding with described mood index;
Described indicating module specifically is used for sending to associated user's client the sign of described audio files, indicates described associated user's client to play corresponding audio files according to the sign of described audio files.
11, a kind of client is characterized in that, described client comprises:
Sending module is used for sending the information of the sound prop that the user uses and the mood index that the user sends to server;
Respond module is used for playing corresponding audio files according to the sign of described audio files when the sign of the audio files that receives described server transmission.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008102278798A CN101414948B (en) | 2008-12-02 | 2008-12-02 | Method for using sound prop, server and client terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008102278798A CN101414948B (en) | 2008-12-02 | 2008-12-02 | Method for using sound prop, server and client terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101414948A true CN101414948A (en) | 2009-04-22 |
CN101414948B CN101414948B (en) | 2011-04-13 |
Family
ID=40595273
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008102278798A Active CN101414948B (en) | 2008-12-02 | 2008-12-02 | Method for using sound prop, server and client terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101414948B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103346957A (en) * | 2013-07-02 | 2013-10-09 | 北京播思无线技术有限公司 | System and method for changing head portrait expression of contact person according to messages of contact person |
CN104841131A (en) * | 2014-02-18 | 2015-08-19 | 腾讯科技(深圳)有限公司 | Audio frequency control method and apparatus |
CN104967678A (en) * | 2015-06-08 | 2015-10-07 | 小米科技有限责任公司 | Method and device for controlling intelligent device |
-
2008
- 2008-12-02 CN CN2008102278798A patent/CN101414948B/en active Active
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103346957A (en) * | 2013-07-02 | 2013-10-09 | 北京播思无线技术有限公司 | System and method for changing head portrait expression of contact person according to messages of contact person |
CN103346957B (en) * | 2013-07-02 | 2016-12-28 | 北京播思无线技术有限公司 | A kind of system and method according to contact person's message alteration contact head image expression |
CN104841131A (en) * | 2014-02-18 | 2015-08-19 | 腾讯科技(深圳)有限公司 | Audio frequency control method and apparatus |
WO2015124087A1 (en) * | 2014-02-18 | 2015-08-27 | Tencent Technology (Shenzhen) Company Limited | Audio control method and apparatus |
CN104841131B (en) * | 2014-02-18 | 2019-09-17 | 腾讯科技(深圳)有限公司 | A kind of audio control method and device |
CN104967678A (en) * | 2015-06-08 | 2015-10-07 | 小米科技有限责任公司 | Method and device for controlling intelligent device |
CN104967678B (en) * | 2015-06-08 | 2019-02-12 | 小米科技有限责任公司 | The method and device that smart machine is controlled |
Also Published As
Publication number | Publication date |
---|---|
CN101414948B (en) | 2011-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190147052A1 (en) | Method and apparatus for playing multimedia | |
CN101180621B (en) | System and method for setting up on-line game sessions out of a game context | |
US20090006397A1 (en) | Systems, Methods, Devices and Computer Program Products for Providing Media Recommendation Trekking | |
JP2007213401A (en) | Community site server and program for configurating community based on user preferable music data | |
CN106462642A (en) | Methods, Systems And Media For Performing Personalized Actions On Mobile Devices Associated With A Media Presentation Device | |
US20080119277A1 (en) | Common Interests Affiliation Network Architecture | |
WO2014086138A1 (en) | Method and apparatus for playing background music | |
CN102473183A (en) | Content recommendation system, content recommendation method, content recommendation device, and information recording medium | |
JP6535497B2 (en) | Music recommendation system, program and music recommendation method | |
EP3368171A1 (en) | Method and system for managing multiplayer game sessions | |
CN111209477B (en) | Information recommendation method and device, electronic equipment and storage medium | |
KR20130089921A (en) | Operating method and content providing system | |
KR20070012804A (en) | Automatic bartering proposal for content exchange | |
CN101414948B (en) | Method for using sound prop, server and client terminal | |
CN103257998A (en) | Method for updating a user profile | |
JP2007171335A (en) | Karaoke contest system performing song contest with sponsor, contest server, and karaoke device | |
KR101437355B1 (en) | System, method and computer readable recording medium for providing a game through registration of a buddy | |
US8204936B2 (en) | Data communication | |
JP4494326B2 (en) | How to do a team competition karaoke competition | |
JP7117113B2 (en) | Server equipment, recommendation system | |
CN110035296A (en) | Display methods, equipment and the readable storage medium storing program for executing of direct broadcasting room song information | |
US9032044B2 (en) | Information processing system, information processing method, program, and non-transitory information storage medium | |
KR20240028353A (en) | Selection of supplementary audio segments based on video analysis | |
JP7112953B2 (en) | karaoke system | |
JP2013088669A (en) | Remote control for karaoke, karaoke system, control method of remote control for karaoke set, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |