Control method, game device, computer program product, and readable storage medium
By switching the sound effect mode according to the game type, and combining the bone conduction sensor to detect the sound, the problem of the sound effect in the game not changing with the game type is solved, and the listening experience is improved.
Patent Information
- Application Number
- CN202110843986.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-26
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-07-26
AI Technical Summary
The user's auditory experience during the game is not good because the sound effects corresponding to different game types do not change with the change of the game type, resulting in a poor experience.
By obtaining the current game type, find the preset sound effect mode corresponding to that type, and switch the sound effect to the corresponding mode, including switching between voice mode and preset sound effect mode, and use bone conduction sensors and headphones to detect the sound to determine whether it is the preset Personnel's voice, if it does not include the default sound, switch to the default sound effect mode.
It effectively improves the auditory experience during the game, makes the sound effects more suitable for the game type, and enhances the game experience.
Smart Images

Figure CN113559511B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer application technology, and in particular to a control method, a game device, a computer program product and a readable storage medium. Background Art
[0002] There are many types of games, and different games present different gaming experiences to users. During the game, the music played along with the game brings a richer gaming experience.
[0003] However, during the game, users often feel that even for different game types, the corresponding auditory experience does not change with the change of game type, resulting in a poor experience.
[0004] In summary, how to effectively improve the auditory experience when playing games is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention
[0005] The purpose of the present invention is to provide a control method, a gaming device, a computer program product and a readable storage medium. The control method can automatically switch to different sound effects according to different game types, thereby effectively improving the auditory experience during the game.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] A control method, applied to a gaming device, comprising:
[0008] Get the current game type;
[0009] Finding a preset sound effect mode corresponding to the current game type;
[0010] Switch the sound effect to the preset sound effect mode.
[0011] As a further optimization of the present invention, it also includes:
[0012] Determine whether voice interaction is included according to the current game type. If so, switch the sound effect to the preset sound effect mode and collect sound. If the collected sound includes the voice of a preset person, turn on the voice mode.
[0013] As a further optimization of the present invention, the step of judging whether the collected sound includes the voice of a preset person includes:
[0014] Analyze the voiceprint information of the collected sound and compare it with the preset voiceprint information to determine whether it is the voice of the preset person.
[0015] As a further optimization of the present invention, the gaming device includes headphones having a bone conduction sensor, and the determining whether the collected sound includes the voice of a preset person includes:
[0016] It is determined whether the sound collected by the bone conduction sensor is the voice of the wearer of the headset, and if so, the voice mode is turned on.
[0017] As a further optimization of the present invention, after turning on the voice mode, the method further includes: if the collected sound does not include the voice of a preset person for a first preset time, switching to the preset sound effect mode.
[0018] As a further optimization of the present invention, it also includes:
[0019] Receive instructions, and define the game type of the game according to the instructions;
[0020] A correspondence is established between the defined game type and the sound effect mode in the instruction.
[0021] As a further optimization of the present invention, the gaming device includes headphones, and the control method further includes:
[0022] The wearing state of the earphone is detected, and the pause or start of the game is controlled according to the wearing state of the earphone.
[0023] The present invention also provides a gaming device, comprising:
[0024] The acquisition module is used to obtain the type of the current game;
[0025] A search module, electrically connected to the acquisition module, for searching for a preset sound effect mode corresponding to the current game type;
[0026] The sound effect switching module is electrically connected to the search module and is used to switch the sound effect to the preset sound effect mode.
[0027] The present invention also provides a computer program product, comprising a computer program, which can implement the control method described in any one of the above items when executed by a processor.
[0028] The present invention further provides a computer program product, wherein a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the steps of any of the above control methods are implemented.
[0029] The control method provided by the present invention is applied in a gaming device, the method comprising obtaining a game type; searching for a preset sound effect mode corresponding to the game type; and switching the sound effect to the preset sound effect mode.
[0030] In the present invention, the gaming device first obtains the game type, then finds the preset sound effect mode corresponding to the game type, and then switches the sound effect to the preset sound effect mode. In other words, the sound effect mode is determined according to the game type, so that when the user plays different games, the sound effect switches with the game, and the user can hear the game music / background music that is more suitable for the current game type, which can effectively improve the auditory experience during the game.
[0031] Correspondingly, the embodiments of the present invention also provide a game device, a computer program product and a readable storage medium corresponding to the above control method, which have the above technical effects and are not described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0033] Figure 1 is a flow chart of an implementation of a control method in an embodiment of the present invention;
[0034] Figure 2 is an implementation flow chart of another control method in an embodiment of the present invention;
[0035] Figure 3 A specific implementation flow chart of a control method in an embodiment of the present invention;
[0036] Figure 4 A schematic diagram of a game terminal system in an embodiment of the present invention;
[0037] Figure 5 This is a schematic diagram of a Bluetooth communication connection in an embodiment of the present invention;
[0038] Figure 6 This is a schematic diagram of the structure of a game controller in an embodiment of the present invention;
[0039] Figure 7 The figure is a schematic diagram of a specific structure of a game terminal system in an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] The present invention provides a control method. When a user plays different games, the sound effects are switched accordingly, so that the user can hear game music / background music that is more suitable for the current game type, which can effectively improve the auditory experience during the game. Specifically, the method can be applied to game devices, such as game consoles / game controllers. Please refer to Figure 1 , Figure 1 The figure is a flow chart of an implementation of a control method in an embodiment of the present invention.
[0042] The method includes:
[0043] S001. Get the current game type.
[0044] Specifically, in the embodiment of the present invention, the games can be classified in advance according to their characteristics into leisure and puzzle games, sports and competitive games, role-playing games, shooting and survival games, adventure games, etc.
[0045] When the game device provides game services, the current game type can be obtained. Specifically, the current game type can be obtained based on information such as the name / ID of the game.
[0046] S002. Find the preset sound effect mode corresponding to the current game type.
[0047] In the embodiment of the present invention, corresponding preset sound effect modes can be pre-set for different game types. For example, different sound effect modes can be set according to different game categories, including but not limited to the following corresponding relationships:
[0048] Casual puzzle category-popular sound effects;
[0049] Role Playing - Bass Boost;
[0050] Shooting survival-single sound effect;
[0051] Adventure Category - Virtual Surround.
[0052] In order to facilitate the search for the preset sound effect mode corresponding to the current game type, the correspondence between the valid type and the sound effect mode can be stored in a lookup table, so that by traversing the lookup table, the preset sound effect mode corresponding to the current valid type can be quickly determined.
[0053] Preferably, in actual application, the sound effect setting can also be performed according to the instruction. The specific implementation process includes:
[0054] Step 1: Receive instructions and define the game type of the game according to the instructions;
[0055] Step 2: Establish a correspondence between the defined game type and the sound effect mode in the command.
[0056] The instruction can be an instruction issued by the user through the interactive interface, or an instruction sent by the management device of the game device. The instruction can carry a specific definition of the game type and sound effect mode information. That is, after receiving the instruction, the game type of the game can be defined by the instructions at all levels, and then the defined game type can be established in a corresponding relationship with the sound effect mode in the instruction. In this way, the game type definition of the game and the setting of the corresponding relationship between the game type and the sound effect mode are completed.
[0057] S003. Switch the sound effect to the preset sound effect mode.
[0058] In order to improve the user's gaming experience, the sound effect can be switched to the preset sound effect mode. Specifically, if the current sound effect is a popular sound effect, and the preset sound effect mode corresponding to the current game type is a single sound effect, the sound effect is switched from the popular sound effect to the single sound effect.
[0059] The control method provided by the present invention is applied in a gaming device, the method comprising obtaining a game type; searching for a preset sound effect mode corresponding to the game type; and switching the sound effect to the preset sound effect mode.
[0060] In the present invention, the gaming device first obtains the game type, then finds the preset sound effect mode corresponding to the game type, and then switches the sound effect to the preset sound effect mode. In other words, the sound effect mode is determined according to the game type, so that when the user plays different games, the sound effect switches with the game, and the user can hear the game music / background music that is more suitable for the current game type, which can effectively improve the auditory experience during the game.
[0061] It should be noted that, based on the above embodiments, the embodiments of the present invention also provide corresponding improved solutions. In the preferred / improved embodiments, the same steps or corresponding steps as those in the above embodiments can be referenced to each other, and the corresponding beneficial effects can also be referenced to each other, which will not be described one by one in the preferred / improved embodiments of this article.
[0062] In a specific implementation of the present invention, voice interaction can also be performed according to the actual game scene requirements. Specifically, it can be determined whether voice interaction is included according to the current game type. If so, the sound effect is switched to the preset sound effect mode, and the sound is collected. If the collected sound includes the voice of the preset person, the voice mode is turned on. That is, in actual applications, the game type can be associated with whether voice interaction is included. After obtaining the current game type, the association between the game type and the voice interaction can be used to determine whether the current game type includes voice interaction. If voice interaction is included, the sound effect can be switched to the preset sound effect mode and the sound can be collected. In order to avoid interference to the voice interaction caused by noise or other non-preset person's voice, the sound can be detected after the sound is collected. When it is detected that the collected sound includes the voice of the preset person, the voice mode is turned on. That is, the preset person can perform voice interaction in the voice mode. Among them, the preset person can be specifically a legitimate user of the game device.
[0063] Optionally, judging whether the collected sound includes the voice of a preset person includes: analyzing the voiceprint information of the collected sound and comparing it with the preset voiceprint information to judge whether it is the voice of the preset person. That is, when detecting whether the collected sound is the voice of the preset person, the similarity between the voiceprint information of the collected sound and the preset sound information can be analyzed, and then based on the corresponding relationship between the similarity and the preset judgment threshold, it can be judged that the voice is the preset person.
[0064] Optionally, the gaming device includes a headset with a bone conduction sensor, and judging whether the collected sound includes the voice of a preset person includes: judging whether the sound collected by the bone conduction sensor is the voice of the wearer of the headset, and if so, turning on the voice mode. When the gaming device is specifically a headset with a bone conduction sensor, it is possible to directly judge whether the sound collected by the bone conduction sensor is the voice of the wearer of the headset, and if so, directly turning on the voice mode.
[0065] Preferably, considering that the duration of general voice interaction is limited, in order to avoid being in voice mode for a long time and affecting the gaming experience, after the voice mode is turned on, a step can be performed: if the collected voice does not include the voice of a preset person for a first preset time, switch to the preset sound effect mode. The first preset time can be set according to actual needs, such as 5 minutes. If the voice of the preset person is not collected within 5 minutes, the voice mode can be directly switched to the preset sound effect mode.
[0066] Preferably, if the gaming device includes headphones, the control method can also detect the wearing status of the headphones, and control the pause or start of the game according to the wearing status of the headphones. Specifically, if the headphones are placed in a game controller, the headphones in the game controller can be detected to be out of the box. When it is detected that the headphones have been out of the box, it can be determined that the headphones have been worn. Of course, it is also possible to detect whether the headphones have been worn by using a pressure sensor on the headphones. After determining that the headphones have been worn, the pause or start of the game can be controlled according to the wearing status of the headphones.
[0067] In practical applications, Figure 1 On the basis of the embodiment shown, the function of switching sound effects according to user operation can be added to enhance the gaming experience. Specifically, the method is applied to a game controller, the game controller and the TWS headset are both connected to the game console, and the game controller and the TWS headset have a Bluetooth communication connection. Please refer to Figure 2 , Figure 2 This is a flow chart of another control method in an embodiment of the present invention, the method comprising the following steps:
[0068] S100. Use a specific combination of keys to enter control mode or sound effect mode.
[0069] In the present invention, the game controller can be set with a control mode and a sound effect mode, and a specific combination of keys for entering the corresponding mode can be set.
[0070] Specifically, if the sound effect switching group key is detected, the sound effect mode is switched; if the function switching group key is detected, the control mode is switched. In other words, if the sound effect mode is switched, it is based on the sound effect switching group key; if the control mode is switched, it is based on the function switching group key.
[0071] S200, in sound effect mode, adaptively switch the sound effects of the TWS headset according to the game scene.
[0072] Generally, sound effects include preset virtual surround sound, echo cancellation, bass enhancement, pop and other styles. Different types of games will have different preset sound effect types, and gamers can choose sound effects according to the game type.
[0073] Specifically, in the sound effect mode, the sound effect control data packet is transmitted to the game console and the TWS headset is controlled to enter the sound effect receiving mode; so that the game console can generate corresponding sound effects according to the game scene, and pass the sound effects to the TWS headset entering the sound effect receiving mode, so that the TWS headset can adaptively complete the switching of the sound effects.
[0074] Among them, the sound effect control data packet can be specifically referred to the following table:
[0075] The following data packet format is defined in the game controller to achieve adaptive sound effect switching and control mode:
[0076] Address Area Functional area Data Area Verification Area 8bit 4bit 8bit 2bit
[0077] Among them, the address area is used to store the Bluetooth address of the headset; the function area is used to switch the sound effect mode and control mode; the data area is used to transmit related sound effect data and control information.
[0078] For example: when you press the combination button Option+X+Y, the headset enters the sound effect receiving mode. At this time, the game controller transmits the above data packet to the game console. The console generates corresponding sound effects according to the relevant game scene, and the sound effects are then transmitted to the headset to be received, so that the headset can adaptively complete the switching of sound effects and enhance the gaming experience. Then, Option+right joystick is used to switch sound effects such as preset virtual surround sound, echo cancellation, bass enhancement, pop and other styles. Different types of games will have different preset sound effect types, and gamers can choose sound effects according to the game type.
[0079] S300: In control mode, control the function status of the TWS headset.
[0080] Specifically, step S300 includes:
[0081] Case 1: Use the up / down + option buttons on the left / right joystick to control the left / right headphone volume accordingly.
[0082] That is, the up, down, and option buttons of the left joystick control the volume of the left earphone, and the up and down of the joystick correspond to the adjustment of the volume of the earphone; the up, down, and option buttons of the right joystick control the volume of the right earphone, and the up and down of the joystick correspond to the adjustment of the volume of the earphone.
[0083] Case 2: Use the left / right shoulder button + Option button to control the active noise reduction button function of the left / right earphones.
[0084] That is, the left shoulder button + Option button corresponds to the switch of the active noise reduction button function of the left earphone; the right shoulder button + Option button corresponds to the switch of the active noise reduction button function of the right earphone. Among them, the active noise reduction function can correspond to ANC noise reduction (Active Noise Control). The working principle of noise reduction is that the microphone collects external environmental noise, and then the system converts it into an inverted sound wave and adds it to the speaker end. The final sound heard by the human ear is: environmental noise + inverted environmental noise. The two noises are superimposed to achieve sensory noise reduction.
[0085] Case 3: Use the left / right Trigger+Option button to activate the sound collection device integrated in the headset so as to use the headset for real-time interactive communication.
[0086] That is, the left Trigger+Option button, or the right Trigger+Option button, turns on the sound collection device integrated in the headset, so that the user can use the headset to interact with friends in real time.
[0087] It should be noted that the buttons in the game handle involved in the present invention can be specifically referred to in Figure 6 , and the button settings of the game controller.
[0088] The method provided by the embodiment of the present invention is applied to the game controller, and a specific combination of buttons is used to enter the control mode or the sound effect mode; in the sound effect mode, the sound effects of the TWS headset are adaptively switched according to the game scene; in the control mode, the functional state of the TWS headset is controlled; wherein, both the game controller and the TWS headset have a communication connection with the game console, and the game controller and the TWS headset have a Bluetooth communication connection.
[0089] In the present invention, when there is a communication connection between the game controller, the TWS headset and the game console, the control mode or the sound effect mode of the game controller can be switched through a specific combination of buttons on the game controller. In the sound effect mode, the sound effects of the TWS headset can be adaptively switched according to the game scene, and in the control mode, the functional state of the TWS headset can be controlled. In other words, in the present invention, the sound effects and functions of the TWS headset are controlled by the game controller, and the TWS headset can be integrated with the game controller. When the sound effects or functions of the headset need to be adjusted, the game controller can be operated to achieve it, which can enhance the gaming experience.
[0090] Considering that game controllers, headphones and game consoles are generally used in games, in order to enhance the gaming experience, Figure 1 On the basis of the corresponding embodiment, the headset can also be controlled by a game controller. For details, please refer to Figure 3 , Figure 3 This is a specific implementation flow chart of a control method in an embodiment of the present invention, and the method includes the following steps:
[0091] S101. Perform out-of-box inspection on the TWS earphones.
[0092] Among them, both the game controller and the TWS headset have a Bluetooth communication connection with the game console, the game controller and the TWS headset have a Bluetooth communication connection, and the TWS headset plays game sounds and / or realizes game voice communication. The headset is a headset that uses LEAudio, and the game controller has a placement structure for the TWS headset and a charging device for the TWS headset. Among them, the placement structure can be specifically a placement cavity or a box body, and can also be a magnetic adsorption position, that is, the placement structure can enable the TWS headset to be stably placed in or on the surface of the game controller, and the charging device can be specifically a device that can provide charging capability to the game controller. In this embodiment, the specific structure and principle of the placement structure and the charging device are not limited.
[0093] This TWS headset can only play game sounds, or only participate in game voice communication, or it can also realize game voice communication while playing game sounds.
[0094] In this embodiment, the TWS headset can have a Bluetooth communication connection with both the game console and the game controller. It is only necessary that the synchronization channel function of the protocol used by the TWS headset supports multiple receiving devices to synchronously receive data from the main device. For example, the LE Audio protocol can be used.
[0095] Among them, the synchronous channel function of LE Audio (a Bluetooth communication protocol) supports multiple receiving devices to synchronously receive data from the main device, avoiding the forwarding mechanism of traditional Bluetooth and reducing latency; secondly, the LC3 (Low Complexity Communication Codec) coding compression rate is higher than that of traditional SBC (sub-band coding, a waveform coding method based on signal spectrum), and LC3 is highly robust and has a smaller buffer than SBC. Based on the above two features of LE Audio, TWS headphones (generally referring to two headphones, i.e. left and right headphones) and a game controller, as three slave devices, can simultaneously receive information from the main device, i.e. the game console; due to the relatively low latency, the sound signal in the TWS headphones can be better synchronized with the console game screen, improving the gaming experience.
[0096] In this embodiment, the game controller can perform out-of-box detection on the TWS earphones using LE Audio, that is, detect whether the TWS earphones have been taken out. Specifically, the specific out-of-box detection method is not limited in this embodiment.
[0097] Preferably, in order to realize the integration of the game controller and the TWS headset, the game controller has a placement structure for the TWS headset and a charging device for the TWS headset. Specifically, the game controller has a placement structure for the TWS headset and a charging device, that is, the game controller can serve as a charging box for the TWS headset, integrating the game controller with the TWS headset, making it easier for users to use the TWS headset.
[0098] S102: After detecting that the TWS earphone is taken out, monitor the earphone control button on the game controller.
[0099] After detecting that the TWS earphones are taken out, the earphone control buttons on the game controller can be monitored. Specifically, in actual applications, one or more earphone control buttons can be set on the game controller, and the functions of the earphone control buttons can be only one or multiple. For example, volume adjustment buttons can be set in the left and right hand control areas of the game controller respectively. Of course, the volume adjustment button can also be set in the left hand control area of the handle, and the active noise reduction start switch can be set in the right hand control area.
[0100] S103: When it is detected that the earphone control button is pressed, a corresponding control instruction is sent to the TWS earphone.
[0101] After detecting that the headphone control button is pressed, the corresponding control instruction can be sent to the TWS headphone. That is, the corresponding control instruction is sent to the TWS headphone according to the function corresponding to the pressed headphone control button.
[0102] Among them, the game controller sends corresponding control instructions to the TWS headphones, which can be sent through the Bluetooth transmission protocol. For specific information on how to send control instructions through the Bluetooth transmission protocol, please refer to the specific definition and application of the Bluetooth transmission protocol, which will not be elaborated here.
[0103] In other words, the game controller can control the relevant functions in the TWS headset so as to improve the operability and convenience of TWS headset control and make the gaming experience better.
[0104] Specifically, in actual applications, the headphone control buttons may correspond to different functions, which are briefly described below by way of example:
[0105] Example 1: If the headphone control button includes a volume adjustment button, step S103 sends a corresponding control instruction to the TWS headset when it is detected that the headphone control button is pressed, specifically including: when it is detected that the volume adjustment button is pressed, a volume adjustment instruction is sent to the TWS headset. That is, the game controller has a volume adjustment button. Generally speaking, the volume adjustment button may include a volume increase button and a volume decrease button. Of course, in order to further facilitate control, a mute button may also be set. When the game controller detects that the volume adjustment button is pressed, a volume adjustment instruction is sent to the TWS headset. After receiving the volume adjustment instruction, the TWS headset can control the volume of the output sound, such as increasing or decreasing the volume.
[0106] Example 2: If the headphone control button includes an active noise reduction button, step S103 sends a corresponding control instruction to the TWS headset when it is detected that the headphone control button is pressed, specifically including: when it is detected that the active noise reduction button is pressed, an active noise reduction start instruction is sent to the TWS headset. Among them, active noise reduction generates an anti-phase sound wave equal to the external noise through the noise reduction system to neutralize the noise, thereby achieving the effect of noise reduction; the principle is that all sounds are composed of a certain spectrum. If a sound can be found, its spectrum is exactly the same as the noise to be eliminated, but the phase is just opposite, the noise can be completely offset. When the game controller detects that the active noise reduction button is pressed, it can send an active noise reduction start instruction to the TWS headset. After receiving the active noise reduction start instruction, the TWS headset can collect external noise and generate a sound with a phase exactly opposite to the external noise, thereby offsetting the external noise and achieving the purpose of noise reduction.
[0107] Of course, in actual applications, other control buttons for controlling the TWS headphones can also be set on the game controller, so that the TWS headphones can be controlled through an effective controller.
[0108] In a specific implementation of the present invention, the game controller can also disconnect the Bluetooth communication connection with the TWS headset, and disconnect the Bluetooth communication connection between the TWS headset and the game console, so that the TWS headset can establish a separate Bluetooth communication connection with the target device. In other words, the TWS headset can also present a traditional mode and establish a Bluetooth communication connection with a target device other than the game console, such as a headset. In other words, while realizing the control of the TWS headset by the game controller, it is also compatible with the application of traditional TWS headsets.
[0109] In a specific implementation of the present invention, voice control can also be implemented. The specific implementation process includes:
[0110] Step 1: Use the microphone in the TWS headset to collect ambient audio;
[0111] Step 2: Detect command words in ambient audio and execute tasks corresponding to the command words.
[0112] For ease of description, the above two steps are combined for explanation below.
[0113] The TWS headset has a microphone and can collect ambient audio, so the microphone in the TWS headset can be used to collect ambient audio. Then, after the ambient audio is identified and detected, when the pre-set command word is detected, the task corresponding to the command word can be executed. Among them, the command word can be pre-set according to actual needs, such as setting game pause, game start, volume increase, active noise reduction and other keywords as command words.
[0114] Among them, executing the task corresponding to the command word may specifically include: sending a task instruction corresponding to the task to the game console. In other words, a task instruction corresponding to the task can be sent to the game console, so that the game console performs the relevant task, or forwards the relevant task instruction with the help of the game console. Specifically, the tasks that need to be performed by the game console are performed by the game console, and the tasks that need to be performed by the TWS headset, such as volume adjustment, active noise reduction, etc., are performed by the TWS headset.
[0115] In actual applications, both the game controller and the TWS headset have a Bluetooth communication connection with the game console, the game controller and the TWS headset have a Bluetooth communication connection, and the TWS headset plays game sounds and / or realizes game voice communication. In other words, the TWS headset can only play game sounds; it can also only realize real-time voice communication; it can also realize real-time voice communication while playing game sounds, so that it is convenient to communicate game strategies, experiences, etc. with other gamers.
[0116] For details about the Bluetooth communication connection between the game controller, TWS headset and game console, please refer to Figure 4 , Figure 4 FIG. 1 is a schematic diagram of a game terminal system connection in an embodiment of the present invention. Figure 4 As shown, a game console (as the master device), two Earbuds (TWS headphones), and a game controller for controlling the game (as three slave devices). The above four products support LE Audio transmission and LC3 at the same time. The headphones and game console integrate a private protocol for audio transmission to transmit related sound sources. Unlike A2DP, the private protocol can customize the format size of the package. Based on the good robustness and compression rate of LC3, the buffer size is reduced to minimize the chain delay.
[0117] The solution described in the above embodiment is described in detail below through the game mode and the traditional mode.
[0118] In game mode, there will be Figure 4The link connection relationship shown in the figure, Link 1 to Link 6 will be fully established. Link1, Link2, and Link3 are used to synchronize the status information and timestamp information of the three slave devices; Link4 and Link6 realize the information transmission between the headset and the game console, mainly using the LE Audio transmission method to transmit the sound source to reduce the transmission delay; Link5 realizes the interaction between the game controller and the game console and transmits the control signal; when the game controller is needed to control the headset, the control signal sent by the game controller can be sent to the game console through Link5, and then the game console sends it to the TWS headset end through Link4 and Link6 respectively, thereby realizing the control of the TWS headset by the game controller.
[0119] When the game controller is used with a game console to experience games, the game controller will use its integrated IR Sensor to determine whether the earphones are taken out. If the earphones are not taken out, the game controller can be used normally as a traditional controller. After the earphones are taken out, the above 6 connections are automatically established by default through the Bluetooth MAC address (if only one earphone is taken out, 5 connections are established based on the situation of the earphone being taken out).
[0120] During the game, if the player takes off one or both earphones, the earphones have an integrated wearing detection function, which can enable the earphones to send a game pause signal to the game console to pause the game. The game will automatically resume when the player puts on the earphones again.
[0121] After wearing the headphones, gamers can experience the background music of the game through the headphones. At the same time, they can also press a combination button to turn on the MIC (microphone) integrated in the headphones and use the headphones to interact with friends in real time.
[0122] During the game, gamers can adjust the volume through the preset combination buttons on the game controller, or choose to turn on or off the active noise reduction function of the headphones. If wearing headphones for a long time causes discomfort in the ears, you can also switch the audio stream to an external speaker such as a TV for playback with one click. In addition, because the uplink noise reduction on the TWS headset can improve the voice recognition rate, a keyword recognition algorithm is integrated on the headset, such as pause, continue, exit the game, shut down the host and other command words. When the player shouts out the corresponding keyword, the game console will perform the corresponding action.
[0123] In traditional mode, TWS earphones can work independently of the game controller. Put two earphones into the controller and press the preset combination button. The two earphones are disconnected from the controller. At the same time, the two earphones are paired and enter the broadcast state to pair with the corresponding mobile phone. At this time, the TWS earphones have similar functions to traditional TWS. The connection method is as follows: Figure 5 As shown, no further details are given here.
[0124] It should be noted that, in this embodiment, the earphones refer to TWS earphones, and the handles refer to game handles.
[0125] The method provided by the embodiment of the present invention is applied to a game controller.
[0126] Perform out-of-box inspection on the TWS earphones; both the game controller and the TWS earphones have a Bluetooth communication connection with the game console, the game controller and the TWS earphones have a Bluetooth communication connection, and the TWS earphones play game sounds and / or realize game voice communication; after detecting that the TWS earphones are taken out, monitor the earphone control buttons on the game controller; when it is detected that the earphone control button is pressed, send the corresponding control command to the TWS earphones.
[0127] In the present invention, both the game controller and the TWS headset have a Bluetooth communication connection with the game console, and the effective handle and the TWS headset also have a Bluetooth communication connection. The TWS headset can play game sounds, or conduct voice communication, or conduct voice communication while playing game sounds. The game controller can perform out-of-box detection on the TWS headset. When it is detected that the TWS headset is taken out, the headset control button can be monitored. In this way, the corresponding control command can be sent to the TWS headset after the headset control button is pressed. In other words, the game player can control the TWS headset by pressing the control button of the game controller. That is, the present invention has the effect of facilitating operation and control, which is conducive to improving the gaming experience.
[0128] Specific to the above Figure 1 The game device corresponding to the corresponding control method may be specifically a game controller. Corresponding to the above method embodiment, the embodiment of the present invention further provides a game controller, and the game controller described below and the control method described above may refer to each other.
[0129] See also Figure 6 As shown, including:
[0130] The game controller has a placement structure for TWS earphones, a charging device for TWS earphones, and earphone control buttons;
[0131] The game controller is used to execute the steps of the control method as described above.
[0132] It should be noted that Figure 6 Part A shown here refers to two TWS earphones, and Part B refers to the game controller.
[0133] Part A is only for illustration and is not limited to the semi-in-ear handle TWS earphones. It can also be designed into bean-shaped earphones or in-ear earphones as needed. Correspondingly, Part B is also only for illustration, and the shape of the game handle can also be adjusted according to ergonomics.
[0134] Part A can be embedded in Part B or placed into a specific headphone slot by magnetic attraction. The position of the headphone slot on the handle can be adjusted according to space requirements. Part A and Part B are connected at Position C (i.e., the contact position) through a Pogo-Pin (gold finger) to achieve communication and charging functions.
[0135] Since the steps of the above method embodiment can be implemented in the game controller, the game controller also has the technical effects of the control method, which will not be described in detail here.
[0136] Corresponding to the above method embodiment, the embodiment of the present invention further provides a game terminal system, and the game handle described below and the control method described above can be referred to each other.
[0137] Please refer to Figure 4 and Figure 7 , the game terminal system comprises:
[0138] TWS headphones (Ear buds shown), a game console (not shown) and a game controller as described above;
[0139] Both the TWS headset and the game controller have a Bluetooth communication connection with the game console, and the TWS headset has a Bluetooth communication connection with the game console.
[0140] It can be seen that the system saves the traditional charging box of TWS headphones and adds the function of the game controller, so that the game controller can act as a charging box and can be used to control the game. At the same time, the game controller integrates a communication module to realize the function of communicating with the headphones.
[0141] Among them, Ear buds can integrate IR Senor (infrared sensor) to realize the wearing detection function of earphones; the integrated Hall Sensor (Hall sensor) is used to realize out-of-box detection, that is, to detect whether the earphones are taken out; G-Sensor (gravity sensor) is used to realize interaction with the earphones.
[0142] In addition to the buttons for controlling the game, the game controller needs to be integrated with an IR Sensor to detect whether the earphones are in the earphone slot of the controller.
[0143] Since the system includes the game controller provided in the above embodiment, and the game controller can achieve the technical effects of the above method embodiment, the system also has the technical effects of the method embodiment.
[0144] Corresponding to the above method embodiment, an embodiment of the present invention further provides a game device. The game device described below and the control method described above can be referred to in correspondence with each other.
[0145] Specifically, the game device includes:
[0146] The acquisition module is used to obtain the type of the current game;
[0147] A search module, electrically connected to the acquisition module, for searching for a preset sound effect mode corresponding to the current game type;
[0148] The sound effect switching module is electrically connected to the search module and is used to switch the sound effect to a preset sound effect mode.
[0149] The game device has technical effects corresponding to the above control method, which will not be described in detail here.
[0150] Corresponding to the above method embodiment, the embodiment of the present invention further provides a computer program product. The computer program product described below and the control method described above can be referred to in correspondence with each other.
[0151] Specifically, the present invention further proposes a computer program product, including a computer program, which can implement any of the control methods described above when executed by a processor.
[0152] Corresponding to the above method embodiment, an embodiment of the present invention further provides a readable storage medium. The readable storage medium described below and the control method described above can refer to each other.
[0153] A readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the control method of the above method embodiment are implemented.
[0154] The readable storage medium may specifically be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or other readable storage medium that can store program codes.
[0155] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
Claims
1. A control method, applied to a gaming device, characterized in that: include: Get the current game type; Finding a preset sound effect mode corresponding to the current game type; The correspondence between the sound effect type and the sound effect mode is in the lookup table, and the correspondence includes: casual puzzle games correspond to popular sound effects, role-playing games correspond to bass enhancement, shooting survival games correspond to single-tone sound effects, and adventure games correspond to virtual surround; Switch the sound effect to the preset sound effect mode; Determine whether voice interaction is included according to the current game type, and if so, switch the sound effect to the preset sound effect mode and collect sounds, and if the collected sounds include the voice of a preset person, start the voice mode; In the sound effect mode, the sound effect control data packet sent by the game controller is used to control the TWS headset to enter the receiving sound effect mode, so that the game console can generate corresponding sound effects according to the game scene, and pass the sound effects to the TWS headset that enters the receiving sound effect mode, so that the TWS headset can adaptively complete the switching of sound effects; Among them, the sound effect control data packet includes an address area, a function area, a data area and a check area. The address area is used to store the Bluetooth address of the headset; the function area is used to switch the sound effect mode and the control mode; the data area is used to transmit related sound effect data and control information.
2. The control method according to claim 1, characterized in that: Judging whether the collected sound includes the preset person's voice includes: Analyze the voiceprint information of the collected sound and compare it with the preset voiceprint information to determine whether it is the voice of the preset person.
3. The control method according to claim 1, characterized in that: The gaming device includes a headset with a bone conduction sensor, and judging whether the collected sound includes the voice of a preset person includes: It is determined whether the sound collected by the bone conduction sensor is the voice of the wearer of the headset, and if so, the voice mode is turned on.
4. The control method according to claim 1, characterized in that: After the voice mode is turned on, the method further includes: if the collected sound does not include the sound of a preset person for a first preset time, switching to a preset sound effect mode.
5. The control method according to claim 1, characterized in that: Also includes: Receive instructions, and define the game type of the game according to the instructions; A correspondence is established between the defined game type and the sound effect mode in the instruction.
6. The control method according to claim 1, characterized in that: The gaming device includes a headset, and the control method further includes: The wearing state of the earphone is detected, and the pause or start of the game is controlled according to the wearing state of the earphone.
7. A gaming device, characterized in that: include: The acquisition module is used to obtain the type of the current game; A search module, electrically connected to the acquisition module, for searching for a preset sound effect mode corresponding to the current game type; The correspondence between the sound effect type and the sound effect mode is in the lookup table, and the correspondence includes: casual puzzle games correspond to popular sound effects, role-playing games correspond to bass enhancement, shooting survival games correspond to single-tone sound effects, and adventure games correspond to virtual surround; A sound effect switching module, electrically connected to the search module, for switching the sound effect to the preset sound effect mode; A voice mode management module, used to determine whether voice interaction is included according to the current game type, and if so, switch the sound effect to the preset sound effect mode and collect sounds, and if the collected sounds include the voice of a preset person, turn on the voice mode; The sound effect control switching module is used to control the TWS headset to enter the receiving sound effect mode using the sound effect control data packet sent by the game controller in the sound effect mode, so that the game console can generate corresponding sound effects according to the game scene, and pass the sound effects to the TWS headset entering the receiving sound effect mode, so that the TWS headset can adaptively complete the switching of sound effects; wherein, the sound effect control data packet includes an address area, a function area, a data area and a check area, the address area is used to store the Bluetooth address of the headset; the function area is used to switch the sound effect mode and the control mode; the data area is used to transmit related sound effect data and control information.
8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the control method as claimed in any one of claims 1 to 6 can be implemented.
9. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the control method according to any one of claims 1 to 6 are implemented.
