Embodiment
The embodiment of the invention proposes the voice broadcast service system in a kind of online game, and this system comprises:
Voice editing saving terminal is used for editor's voice programme information, and described voice programme information is offered audio program server;
Described audio program server for the voice program request that receives game client, is obtained voice programme information corresponding to described voice program request, returns described voice programme information to game client;
Game client is used for sending the voice program request to audio program server, receives the voice programme information that audio program server is returned, and described voice programme information is play.
The voice said system that the embodiment of the invention proposes, being intended to provides two kinds of different voice broadcast services for the user in online game: prerecord the broadcasting of voice broadcast service and real-time voice.Wherein, prerecord voice broadcast service, refer to make and preserve for different scene of game in advance the voice programme information, the scene identity (ID) that different scene of game is corresponding different, a scene of game may have one or more snippets voice programme information, every section voice programme information is a corresponding unique voice identifier (ID) all, so just has the corresponding relation of scene identity and voice identifier.When the user proceeds to different scene of game, can be according to the prompting of game server, send the voice program request to audio program server, comprise voice identifier in this voice program request, voice programme information corresponding to audio program server retrieval voice identifier, and this voice programme information is back to game client, game client is play this voice programme information in real time.Like this operate in each handoff scenario the time can carry out.Like this, the user can play the voice introduction about this scene of making in advance when switching to different scene of game, and the explanation that does not need to read literal.Real-time voice broadcasting is equivalent to the official media in the gaming world, and system's real-time manufacturing also utilizes broadcasting channel to upload the voice programme information, answers the request of game client, and audio program server can be play described voice programme information to game client.
For above-mentioned two kinds of different voice broadcast services, below introduce in detail respectively two kinds of voice broadcast service system and methods in the online game in the situation.
Embodiment one: for the voice broadcast service system and method for prerecording voice.
Referring to Fig. 1, Fig. 1 is that the embodiment of the invention one is for the voice broadcast service system configuration schematic diagram of prerecording voice.This system comprises:
Voice editing saving terminal 110, audio program server 120, game client 130; Because it is very large to prerecord the data volume of voice programme information, can also comprise a speech database 140, be used for preserving the voice programme information; In addition, because it is relevant with scene of game to prerecord the voice programme information, this system can also comprise game server 150, and being used for voice identifier corresponding to this scene identity provides to game client when the game client handoff scenario.Each module concrete function can for:
Voice editing saving terminal 110 is used to voice programme information corresponding to each voice identifier editor that sets in advance, and the voice programme information that each voice identifier is corresponding is sent to speech database 140;
Speech database 140 is used for receiving and preserving voice programme information corresponding to each voice identifier;
Game server 150, be used for preserving the corresponding relation of the described voice identifier that sets in advance and scene identity, the current place of game, location scene, search the corresponding voice identifier of sign of the current place of described game scene according to described corresponding relation, the voice identifier that finds is sent to game client 130;
Game client 130 is used for receiving the voice identifier that game server 150 sends, and sends the voice program request that comprises this voice identifier to audio program server 120; Also be used for receiving the voice programme information that audio program server 120 sends, the voice programme information that retrieves is play;
Audio program server 120, be used for receiving the voice program request that game client 130 sends, from speech database 140, retrieve corresponding voice programme information according to the voice identifier in the described voice program request, described voice programme information is sent to game client 130.
For finishing above-mentioned functions, each module can comprise different submodules, and wherein, voice editing saving terminal 110 can comprise:
The first voice program making module 111, be used to the voice identifier that sets in advance to record corresponding analog voice programme signal, convert described analog voice programme signal to the digital speech programme signal, described digital speech programme signal is compressed into voice programme information corresponding to voice identifier, and the voice programme information that described voice identifier is corresponding offers the first sending module 112;
Described the first sending module 112 is used for the voice programme information that described voice identifier is corresponding and is sent to speech database 140.
Game client 130 can comprise:
The first game logic module 131 is used for receiving the voice identifier that game server 150 sends, and generates the voice program request that comprises described voice identifier, and described voice program request is sent to the first speech control module 132;
Described the first speech control module 132 is used for described voice program request is sent to audio program server 120, receives the voice programme information that audio program server 120 is returned, and described voice programme information is play.
Audio program server 120 can comprise:
Receiver module 121 is used for receiving the voice program request that game client 130 sends, and the voice identifier in the described voice program request is offered retrieval module 122;
Described retrieval module 122 is used for according to described voice identifier at voice programme information corresponding to speech database 140 retrievals;
Buffer memory and sending module 123, the voice programme information that is used for retrieval module 122 is retrieved carries out buffer memory, and described voice programme information is sent to game client 130.
Based on said system, the embodiment of the invention one for the voice broadcast method of prerecording voice as shown in Figure 2, Fig. 2 is the realization flow figure of described method.The specific implementation process comprises:
Step 201: voice editing saving terminal is voice programme information corresponding to voice identifier editor that sets in advance;
Step 202: voice editing saving terminal is sent to speech database with described voice programme information;
Step 203: the user uses game client to enter game, logs in game server;
Step 204: game server is located the scene of game at current place, according to the corresponding relation of the voice identifier that sets in advance and scene identity, searches the voice identifier of the sign correspondence of current place scene of game, and this voice identifier is sent to game client;
Step 205: game client generates the voice program request that comprises voice identifier, and the voice program request is sent to audio program server;
Step 206: audio program server is according to the voice identifier in the voice program request, and voice programme information corresponding to retrieval voice identifier is back to game client with the voice programme information from speech database;
Step 207: game client is play the voice programme information of receiving.
Embodiment two: for the voice broadcast service system and method for real-time voice.
Referring to Fig. 3, Fig. 3 is that the embodiment of the invention two is for the voice broadcast service system configuration schematic diagram of real-time voice.This system comprises:
Voice editing saving terminal 310 is used for the voice programme information of real-time manufacturing broadcasting channel, and the voice programme information of described broadcasting channel is sent to audio program server 320;
The voice programme information of described broadcasting channel is preserved and safeguarded to audio program server 320 for the voice programme information of the broadcasting channel that receives 310 transmissions of voice editing saving terminal; Provide broadcast channel information to game client 330, receive the voice program request that game client 330 sends, sign according to the broadcasting channel of listening in the described voice program request is selected corresponding voice programme information, and described voice programme information is sent to game client 330;
Game client 330, be used for receiving the broadcast channel information that audio program server 320 provides, the broadcasting channel that selection is listened to is included in the sign of the described broadcasting channel of listening in the voice program request, and the voice program request is sent to audio program server 320; Receive the voice programme information that audio program server 320 is returned, described voice programme information is play.
In the said system, voice editing saving terminal 310 can comprise:
The second voice program making module 311, the analog voice programme signal that is used for the real-time manufacturing broadcasting channel, convert described analog voice programme signal to the digital speech programme signal, described digital speech programme signal is compressed into the voice programme information of broadcasting channel, the voice programme information of described broadcasting channel is offered the second sending module 312;
Described the second sending module 312 is used for the voice programme information of described broadcasting channel is sent to audio program server 320.
Audio program server 320 can comprise:
Maintenance module 321 be used for to receive the voice programme information of the broadcasting channel that voice editing saving terminal 310 sends, and preserves and safeguard the voice programme information of broadcasting channel, the content etc. that comprises management and distribute each broadcasting channel;
Broadcast channel information sending module 322 is used for providing broadcast channel information to game client 330;
Voice program request processing module 323, be used for receiving the voice program request that game client 330 sends, sign according to the broadcasting channel of listening in the described voice program request, from maintenance module 321, select corresponding voice programme information, described voice programme information is sent to game client 330.
Game client 330 can comprise:
The second speech control module 331 is used for receiving the broadcast channel information that audio program server 320 sends, and described broadcast channel information is sent to the second game logic module 332; Receive the voice program request that the second game logic module 332 sends, described voice program request is sent to audio program server 320; Receive the voice programme information that audio program server 320 is returned, described voice programme information is play;
The second game logic module 332 is used for receiving and showing described broadcast channel information, generates the voice program request of the sign that comprises the broadcasting channel of listening to, and described voice program request is sent to the second speech control module 331.
Based on said system, the embodiment of the invention two for the voice broadcast method of real-time voice as shown in Figure 4, Fig. 4 is the realization flow figure of described method.The specific implementation process comprises:
Step 401: voice editing saving terminal is made the voice programme information of broadcasting channel in real time;
Step 402: voice editing saving terminal is sent to audio program server with the voice programme information of broadcasting channel, and the voice programme information of broadcasting channel is preserved and safeguarded to audio program server;
Step 403: the user plays by game client, and audio program server provides broadcast channel information to game client;
Step 404: the broadcasting channel that the game client selection is listened to, generate the voice program request, comprise the sign of the broadcasting channel of listening in this voice program request, the voice program request is sent to audio program server;
Step 405: audio program server is selected corresponding voice programme information according to the sign of the broadcasting channel of listening in the voice program request, and this voice programme information is back to game client;
Step 406: game client is play the voice programme information of receiving.
It is worthy of note in addition, when reality realizes, above-mentioned for prerecording voice the broadcasting speech system and can exist simultaneously for the broadcasting speech system of real-time voice, prerecord voice and two kinds of broadcast service of real-time voice for game user provides.
The embodiment of the invention proposes the voice broadcast method in a kind of online game, comprising:
(1) voice editing saving terminal editor voice programme information;
(2) audio program server receives the voice program request of game client, obtain the corresponding voice programme information of voice program request from described voice editing saving terminal editor's voice programme information, the voice programme information that described voice program request is corresponding is back to game client;
(3) game client voice programme information that described audio program server is returned is play.
For prerecording voice broadcast service, the step of the voice editing saving terminal editor voice programme information in the said method step (1) can comprise: voice editing saving terminal is voice programme information corresponding to voice identifier editor that sets in advance;
The voice program request that audio program server in the step (2) receives game client may further include before: the current place of game, game server location scene, according to the described voice identifier that sets in advance and the corresponding relation of scene identity, search the corresponding voice identifier of sign of the current place of described game scene, the voice identifier that finds is sent to game client;
The step that audio program server in the step (2) receives the voice program request of game client can comprise: game client generates the voice program request that comprises described voice identifier, and audio program server receives described voice program request;
The step of obtaining the corresponding voice programme information of voice program request from voice editing saving terminal editor's voice programme information in the step (2) comprises: voice programme information corresponding to each voice identifier that voice editing saving terminal will be edited in advance is kept at speech database, audio program server is obtained voice programme information corresponding to voice identifier in this voice program request according to the voice identifier in the described voice program request from speech database.
For real-time voice broadcasting, the step of the voice editing saving terminal editor voice programme information in the said method step (1) can comprise: voice editing saving terminal is made the voice programme information of broadcasting channel in real time;
The voice program request that audio program server in the step (2) receives game client may further include before: audio program server provides broadcast channel information to game client;
The step that audio program server in the step (2) receives the voice program request of game client can comprise: game client generates the voice program request, comprises the sign of the broadcasting channel of listening in the described voice program request; Audio program server receives described voice program request;
The step of obtaining the corresponding voice programme information of voice program request from voice editing saving terminal editor's voice programme information in the step (2) can comprise: audio program server receives the voice programme information of the broadcasting channel of voice editing saving terminal transmission, preserves and safeguard the voice programme information of described broadcasting channel; Select corresponding voice programme information according to the sign of the broadcasting channel of listening in the described voice program request.
As fully visible, the system and method that the present invention proposes can be prerecorded two kinds of different broadcast service of voice and real-time voice for the user provides.Wherein, prerecording voice mainly is the voice programme information of prerecording for different scene of game, can make game user when playing listening system about the introduction of online game, abandoned the mode that game user is read character introduction in the existing network game, game user can obtain network cognitive like a cork like this, has improved user's experience.Real-time voice then is equivalent to the official media in the network world, and situation that can different location, the game replaying world is reported, and the user can realize gaming world variation at every moment like this, the raising sense of reality; Can also allow some game users carry out direct broadcasting room, share experience; In addition, all right suitably broadcast advertisement becomes new profit means under the prerequisite of not destroying the gaming world sight.