Walkie-talkie control methods and walkie-talkies and storage media
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN BESNEL TECH CO LTD
- Filing Date
- 2026-03-25
- Publication Date
- 2026-06-02
Smart Images

Figure CN122137413A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of walkie-talkie technology, specifically to a walkie-talkie control method, a walkie-talkie, and a storage medium. Background Technology
[0002] As a two-way mobile communication tool, walkie-talkies include a transmit button. When the transmit button is pressed, it can collect voice signals, and when the transmit button is released, it can transmit the voice signals. However, in complex environments (extreme weather, areas with poor signal, etc.), due to environmental factors, it is sometimes impossible to successfully transmit voice signals to the other party, which reduces the intelligence of the walkie-talkie. Therefore, the problem of how to ensure the signal transmission efficiency of walkie-talkies in complex environments urgently needs to be solved. Summary of the Invention
[0003] This invention provides a walkie-talkie control method, a walkie-talkie, and a storage medium, which can ensure the signal transmission efficiency of walkie-talkie equipment in complex environments.
[0004] In a first aspect, embodiments of the present invention provide a walkie-talkie control method, applied to a first walkie-talkie device, the first walkie-talkie device including a noise sensor, a microphone module, a communication module, and a transmit button, the method comprising:
[0005] When the first walkie-talkie device and the second walkie-talkie device are in a communication connection state, the first signal strength value between the first walkie-talkie device and the second walkie-talkie device is determined by the communication module;
[0006] When the transmit button is pressed, the user's first voice signal is acquired through the microphone module;
[0007] The first environmental noise parameter is collected by the noise sensor;
[0008] The first speech signal is processed based on the first signal strength value and the first environmental noise parameter to obtain the first message;
[0009] When the transmit button is released, the first message is sent to the second walkie-talkie device.
[0010] Secondly, embodiments of the present invention provide a walkie-talkie control device, applied to a first walkie-talkie device, the first walkie-talkie device including a noise sensor, a microphone module, a communication module, and a transmit button, the device comprising:
[0011] The determining module is used to determine a first signal strength value between the first walkie-talkie device and the second walkie-talkie device through the communication module when the first walkie-talkie device and the second walkie-talkie device are in a communication connection state;
[0012] The acquisition module is used to acquire the user's first voice signal through the microphone module and to acquire the first ambient noise parameter through the noise sensor when the transmit button is pressed.
[0013] The processing module is configured to process the first speech signal according to the first signal strength value and the first environmental noise parameter to obtain a first message;
[0014] The transmitting module is used to send the first message to the second walkie-talkie device when the transmit key is released.
[0015] Thirdly, embodiments of the present invention provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data interchange, wherein the computer program causes a computer to perform some or all of the steps described in the first aspect of the present invention.
[0016] Implementing the embodiments of the present invention has the following beneficial effects:
[0017] As can be seen, the walkie-talkie control method, walkie-talkie, and storage medium described in this embodiment of the invention are applied to a first walkie-talkie device. The first walkie-talkie device includes a noise sensor, a microphone module, a communication module, and a transmit button. When the first walkie-talkie device and the second walkie-talkie device are in a communication connection state, the communication module determines a first signal strength value between the first walkie-talkie device and the second walkie-talkie device. When the transmit button is pressed, the microphone module collects the user's first voice signal, and the noise sensor collects a first environmental noise parameter. The first voice signal is processed according to the first signal strength value and the first environmental noise parameter to obtain a first message. When the transmit button is released, the first message is sent to the second walkie-talkie device. Since the first signal strength value reflects the success rate of voice signal transmission, and the first environmental noise parameter reflects the quality of the voice signal to a certain extent, the voice signal can be dynamically converted into a corresponding message based on the success rate of voice signal transmission and the quality of the voice signal. This not only ensures the success rate of signal transmission but also makes it easier for the transmitting target to better understand the voice content and reduces the voice signal transmission distortion rate. In other words, it can ensure the signal transmission efficiency of the walkie-talkie device in complex environments. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a flowchart illustrating a walkie-talkie control method provided in an embodiment of the present invention;
[0020] Figure 2 This is a schematic diagram of the structure of a first walkie-talkie device provided in an embodiment of the present invention;
[0021] Figure 3 This is a schematic diagram illustrating the interface of a first walkie-talkie device provided in an embodiment of the present invention;
[0022] Figure 4 This is a schematic diagram illustrating an application scenario of a first walkie-talkie device provided in an embodiment of the present invention;
[0023] Figure 5 This is another structural schematic diagram of a first walkie-talkie device provided in an embodiment of the present invention;
[0024] Figure 6 This is a functional unit block diagram of a walkie-talkie control device provided in an embodiment of the present invention. Detailed Implementation
[0025] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0026] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.
[0027] It should be understood that the term "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this document indicates that the preceding and following related objects are in an "or" relationship. In the embodiments of this invention, "multiple" refers to two or more.
[0028] In this invention, "at least one item" or similar expressions refer to any combination of these items, including any combination of a single item or multiple items. "One or more" means one or more, while "multiple" means two or more. For example, "at least one item" of a, b, or c can represent the following seven cases: a, b, c, a and b, a and c, b and c, a, b, and c. Each of a, b, and c can be an element or a set containing one or more elements.
[0029] In the embodiments of this invention, "connection" refers to various connection methods such as direct connection or indirect connection to achieve communication between devices. The embodiments of this invention do not impose any limitations on this.
[0030] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0031] In this embodiment of the invention, both the first walkie-talkie device and the second walkie-talkie device are walkie-talkie devices.
[0032] The embodiments of the present invention will be described in detail below.
[0033] Please see Figure 1 , Figure 1 This is a flowchart illustrating a walkie-talkie control method provided in an embodiment of the present invention. It is applied to a first walkie-talkie device, which includes a noise sensor, a microphone module, a communication module, and a transmit button. The walkie-talkie control method includes:
[0034] S101: When the first walkie-talkie device and the second walkie-talkie device are in a communication connection state, the first signal strength value between the first walkie-talkie device and the second walkie-talkie device is determined by the communication module.
[0035] As shown in Figure 2, the first walkie-talkie device may include a noise sensor, a microphone module, a communication module, and a transmit button. The noise sensor is used to detect ambient noise, the microphone module is used to collect the user's voice, the communication module is used to implement communication functions, and the transmit button is used to transmit the user's voice.
[0036] The transmit button may include a virtual button or a physical button, and the first walkie-talkie device may include at least one transmit button.
[0037] Among them, such as Figure 3As shown, the first walkie-talkie device may further include a touch display area, which may include multiple transmit keys, such as transmit key 1, transmit key 2, ..., transmit key n. Each transmit key may correspond to a transmitting target or a transmitting group. In specific implementation, when a transmit key is detected to be pressed, a communication connection can be established with the transmitting target corresponding to the transmit key, and then the user's voice can be collected to transmit the voice to the transmitting target. For example, a preset mapping relationship between transmit keys and transmitting targets can be established in advance, and the transmitting target corresponding to the pressed key can be determined based on this mapping relationship.
[0038] Among them, such as Figure 4 As shown, communication can be established between the first walkie-talkie device and the second walkie-talkie device.
[0039] In practice, when the first walkie-talkie device and the second walkie-talkie device are in a communication connection state, the first signal strength value between the first walkie-talkie device and the second walkie-talkie device can be determined by the communication module. Different signal strength values reflect the success rate of signal transmission.
[0040] S102: When the transmit button is pressed, the user's first voice signal is acquired through the microphone module.
[0041] In practice, when the transmit button is pressed, the user's first voice signal can be collected through the microphone module so as to transmit the first voice signal to the second walkie-talkie device.
[0042] S103: Collect the first environmental noise parameter through the noise sensor.
[0043] The first environmental noise parameter may include environmental noise over a period of time. For example, the microphone module and the noise sensor may collect data synchronously, that is, both collect the first speech signal and the first environmental noise parameter at the same time.
[0044] The first environmental noise parameter can be the average noise over a period of time, or it can be the maximum noise over a period of time.
[0045] The microphone module and the noise sensor can be a single module, or the microphone module and the noise sensor can be separate modules.
[0046] S104: Process the first speech signal according to the first signal strength value and the first environmental noise parameter to obtain the first message.
[0047] In a specific implementation, the first speech signal can be adaptively processed based on the first signal strength value and the first environmental noise parameter to obtain the first message. The first message may include a speech message and / or a text message. Since the first signal strength value reflects the success rate of speech signal transmission, and the first environmental noise parameter reflects the quality of the speech signal to a certain extent, the speech signal can be dynamically converted into the corresponding message based on the success rate of speech signal transmission and the quality of the speech signal. This not only ensures the success rate of signal transmission but also helps the transmitting target better understand the speech content and reduces the distortion rate of speech signal transmission.
[0048] S105: When the transmit key is released, send the first message to the second walkie-talkie device.
[0049] In practice, when the transmit button is released, the first walkie-talkie device can send a first message to the second walkie-talkie device. Since the first signal strength value reflects the success rate of voice signal transmission, and the first environmental noise parameter reflects the quality of voice signal to a certain extent, the voice signal can be dynamically converted into a corresponding message based on the success rate of voice signal transmission and the quality of voice signal. This not only ensures the success rate of signal transmission, but also makes it easier for the transmitting target to better understand the voice content and reduces the distortion rate of voice signal transmission.
[0050] As can be seen, the walkie-talkie control method, walkie-talkie, and storage medium described in this embodiment of the invention are applied to a first walkie-talkie device. The first walkie-talkie device includes a noise sensor, a microphone module, a communication module, and a transmit button. When the first walkie-talkie device and the second walkie-talkie device are in a communication connection state, the communication module determines a first signal strength value between the first walkie-talkie device and the second walkie-talkie device. When the transmit button is pressed, the microphone module collects the user's first voice signal, and the noise sensor collects a first environmental noise parameter. The first voice signal is processed according to the first signal strength value and the first environmental noise parameter to obtain a first message. When the transmit button is released, the first message is sent to the second walkie-talkie device. Since the first signal strength value reflects the success rate of voice signal transmission, and the first environmental noise parameter reflects the quality of the voice signal to a certain extent, the voice signal can be dynamically converted into a corresponding message based on the success rate of voice signal transmission and the quality of the voice signal. This not only ensures the success rate of signal transmission but also makes it easier for the transmitting target to better understand the voice content and reduces the voice signal transmission distortion rate. In other words, it can ensure the signal transmission efficiency of the walkie-talkie device in complex environments.
[0051] Optionally, the above steps, which process the first speech signal based on the first signal strength value and the first environmental noise parameter to obtain the first message, can be implemented as follows:
[0052] The first speech signal is denoised based on the first environmental noise parameter to obtain the second speech signal.
[0053] When the first signal strength value is greater than or equal to the first threshold, the second voice signal is used as the first message;
[0054] When the first signal strength value is less than the first threshold and greater than the second threshold, the first signal size of the second speech signal is determined, the first compression processing parameter is determined according to the first signal size, the second speech signal is compressed according to the first compression processing parameter to obtain a third speech signal, and the first message is generated according to the third speech signal and the first compression processing parameter; the second threshold is less than the first threshold.
[0055] When the first signal strength value is less than or equal to the second threshold and greater than the third threshold, the second signal size of the second speech signal is determined; the second compression processing parameter is determined according to the second signal size; the second speech signal is compressed according to the second compression processing parameter to obtain a fourth speech signal; the second speech signal is converted into first text content; the first message is generated according to the fourth speech signal, the first text content and the second compression processing parameter; the second threshold is less than the third threshold.
[0056] When the first signal strength value is less than or equal to the third threshold, the second voice signal is converted into second text content; the first message is generated based on the second text content.
[0057] In a specific implementation, the first speech signal can be denoised based on the first environmental noise parameter to obtain the second speech signal. For example, a preset mapping relationship between the environmental noise parameter and the denoising algorithm can be set in advance. Then, the first denoising algorithm corresponding to the first environmental noise parameter can be determined based on the mapping relationship. The first speech signal can then be denoised based on the first denoising algorithm to obtain the second speech signal. In this way, an appropriate denoising algorithm can be selected based on the actual environmental noise situation to ensure the denoising effect and the quality of the speech signal.
[0058] The first, second, and third thresholds can all be preset or set by system default. The second threshold is lower than the first threshold.
[0059] In practice, when the first signal strength value is greater than or equal to the first threshold, it means that the signal between the first walkie-talkie device and the second walkie-talkie device is very good and there is basically no failure to transmit messages. Therefore, the second voice signal can be directly used as the first message.
[0060] In specific implementation, when the first signal strength value is less than a first threshold but greater than a second threshold, it indicates a possible failure in voice signal transmission. Therefore, the first signal size of the second voice signal can be determined, and first compression processing parameters can be determined based on this first signal size. For example, the first compression processing parameters may include a first compression algorithm and its corresponding algorithm parameters. Specifically, a pre-stored mapping relationship between signal sizes and compression processing parameters can be used to determine the first compression processing parameters corresponding to the first signal size. Then, the second voice signal is compressed according to the first compression processing parameters to obtain a third voice signal. This means the voice signal can be compressed to reduce its size. Finally, a first message is generated based on the third voice signal and the first compression processing parameters. It can also carry first compression processing parameters. After receiving the first message, the second walkie-talkie device can decompress the third voice signal based on the first compression processing parameters to restore the second voice signal. For example, the first message can also include a decompression command, which includes the first compression processing parameters. After receiving the first message, the second walkie-talkie device responds to the decompression command and decompresses the third voice signal based on the first compression processing parameters to restore the second voice signal. In this way, if there is a certain failure in voice signal transmission between the first and second walkie-talkie devices, the voice signal can be dynamically compressed based on the voice signal size, which can ensure the success rate of voice signal transmission to a certain extent. It also facilitates the second walkie-talkie device to perform adaptive decompression operation after receiving the first message, ensuring the quality of the voice signal.
[0061] In specific implementation, when the first signal strength value is less than or equal to the second threshold and greater than the third threshold, there is a high probability of some voice signal transmission failure. On the one hand, the second signal size of the second voice signal can be determined, and the second compression processing parameters can be determined based on the second signal size. For example, the second compression processing parameters may include the second compression algorithm and the corresponding algorithm parameters. Specifically, a preset mapping relationship between signal size and compression processing parameters can be stored in advance. The second compression processing parameters corresponding to the second signal size can be determined based on this mapping relationship, and then the second voice signal can be compressed according to the second compression processing parameters to obtain the fourth voice signal. That is, the voice signal can be compressed to a certain extent to reduce the size of the voice signal. On the other hand, the second voice signal is converted into first text content, and then a first message is generated according to the fourth voice signal, the first text content, and the second compression processing parameters. The first message can also carry the second compression processing parameters and the first text content. After the second walkie-talkie device receives the first message, it then... The fourth voice signal can be decompressed based on the second compression processing parameters to restore the second voice signal. For example, the first message may also include a decompression command, which includes the second compression processing parameters. After receiving the first message, the second walkie-talkie device responds to the decompression command and decompresses the fourth voice signal based on the second compression processing parameters to restore the second voice signal. If the second voice signal is unclear, the user can identify the message content transmitted by the first walkie-talkie device based on the first text content and the second voice content. In this way, since there is a high probability of voice signal transmission failure between the first and second walkie-talkie devices, the voice signal can be dynamically compressed based on the voice signal size, which can ensure the success rate of voice signal transmission to a certain extent. At the same time, the voice is converted into text content, which also makes it easier for the second walkie-talkie device to perform adaptive decompression operation after receiving the first message, and identify the message content transmitted by the first walkie-talkie device based on the text content and voice content, thus ensuring the success rate and efficiency of message transmission.
[0062] In specific implementation, when the first signal strength value is less than or equal to the third threshold, it indicates that the signal between the first walkie-talkie device and the second walkie-talkie device is poor. In this case, the second voice signal can be converted into fourth text content, and a first message can be generated based on the fourth text content. For example, the difference between the third threshold and the first signal strength value can be determined to obtain the target difference. According to the preset mapping relationship between the difference and the message generation parameters, the first message generation parameters corresponding to the target difference are determined based on the mapping relationship. The first message is generated based on the first message generation parameters. The message generation parameters may include at least one of the following: message quantity, message sending interval, etc. In this way, the message content can be sent repeatedly or intermittently to ensure the message transmission success rate.
[0063] Optionally, the above steps, which involve denoising the first speech signal based on the first environmental noise parameter to obtain the second speech signal, can be implemented as follows:
[0064] The first speech signal is divided into multiple segments according to the first division method to obtain multiple speech signals;
[0065] The first environmental noise parameter is divided into multiple segments according to the first division method to obtain multiple segments of environmental noise parameter;
[0066] The signal-to-noise ratio (SNR) of each segment is determined based on the multiple environmental noise parameters and the multiple speech signals, resulting in multiple SNRs.
[0067] Based on the multiple signal-to-noise ratios, the multiple speech signals are denoised to obtain the denoised speech signals.
[0068] The noise-reduced multiple speech signals are spliced together to obtain the second speech signal.
[0069] The first division method can be preset or set by the system default. The first division method can include dividing the data into multiple segments of equal length according to chronological order.
[0070] Specifically, the first speech signal can be divided into multiple segments according to the first division method to obtain multiple speech signal segments. Correspondingly, the first environmental noise parameter can be divided into multiple segments according to the first division method to obtain multiple environmental noise parameters. Then, the signal-to-noise ratio (SNR) of each segment can be determined based on the multiple environmental noise parameters and the multiple speech signals to obtain multiple SNRs. A preset mapping relationship between the SNR and the noise reduction processing parameters can be stored in advance. The noise reduction processing parameters may include the noise reduction algorithm and its corresponding control parameters. Based on the mapping relationship, corresponding noise reduction processing parameters are configured for each of the multiple SNRs. Based on the noise reduction processing parameters, the corresponding segments of the speech signals in the multiple speech signals are denoised to obtain denoised multiple speech signals. Finally, the denoised multiple speech signals can be spliced together to obtain the second speech signal. In this way, since the noise is dynamically changing, segmented noise reduction processing can be performed to ensure adaptive noise reduction, which helps to ensure the quality of the speech signal.
[0071] Optionally, the following steps may also be included:
[0072] Identify the first language type corresponding to the first speech signal;
[0073] Obtain the language type set supported by the second walkie-talkie device, wherein the language type set includes at least one second language type;
[0074] When the first language type matches the target second language type in the language type set, the step of processing the first speech signal according to the first signal strength value and the first environmental noise parameter to obtain the first message is performed, wherein the target second language type is one of the at least one second language types.
[0075] The first speech type and the second speech type can include any speech type, such as Mandarin, dialects, English, German, Spanish, Italian, etc., without limitation.
[0076] In specific implementation, the first language type corresponding to the first voice signal can be identified, and the set of language types supported by the second walkie-talkie device can also be obtained. The language type set includes at least one second language type. When the first language type is consistent with the target second language type in the language type set, it can be guaranteed that both the first and second walkie-talkie devices can understand the message content normally. Then, the step of processing the first voice signal according to the first signal strength value and the first environmental noise parameter to obtain the first message can be executed. The target second language type is one of the at least one second language type. In this way, it is possible to identify whether the two parties can communicate before the message is sent, thus ensuring the communication efficiency of the walkie-talkie.
[0077] For example, if the first walkie-talkie speaks Tibetan, but the user of the second walkie-talkie does not understand Tibetan (the second walkie-talkie does not support Tibetan), then the two languages are not the same. Conversely, if the first walkie-talkie speaks Mandarin, and the user of the second walkie-talkie understands Mandarin (the second walkie-talkie supports Mandarin), then the two languages are the same.
[0078] Optionally, the following steps may also be included:
[0079] When the first language type is inconsistent with any second language type in the language type set, the first voice signal is translated into the first text content corresponding to any second language type supported by the second walkie-talkie device based on the first signal strength value and the first environmental noise parameter.
[0080] Generate a second message based on the content of the first text;
[0081] When the transmit key is released, the second message is sent to the second walkie-talkie device.
[0082] In specific implementation, when the first language type is inconsistent with any second language type in the language type set, the first voice signal can be translated into first text content corresponding to any second language type supported by the second walkie-talkie device based on the first signal strength value and the first environmental noise parameter. This not only reduces voice noise but also converts voice into text content. Then, a second message is generated based on the first text content. The second message can include voice and / or text, so that the user of the second walkie-talkie device can understand it as text content and / or voice content. When the transmit button is released, the second message is sent to the second walkie-talkie device. In this way, the language types supported by both parties can be automatically identified, ensuring that the messages between the two parties can be communicated without language comprehension barriers, which helps to improve the communication efficiency of the walkie-talkie.
[0083] Optionally, the above step of translating the first voice signal into first text content corresponding to any second language type supported by the second walkie-talkie device based on the first signal strength value and the first environmental noise parameter can be implemented in the following manner:
[0084] The first speech signal is denoised based on the first environmental noise parameter to obtain the fifth speech signal.
[0085] The first translation parameter is determined based on the first signal strength value;
[0086] The fifth speech signal is converted into the first text content according to the first translation parameters.
[0087] In practical implementation, the first speech signal can be denoised based on the first environmental noise parameter to obtain the fifth speech signal. This allows for adaptive denoising based on the actual noise conditions. For example, a pre-defined mapping relationship between environmental noise parameters and denoising algorithms can be established. Then, the denoising algorithm corresponding to the first environmental noise parameter can be determined based on this mapping relationship. The first speech signal can then be denoised based on this algorithm to obtain the fifth speech signal. In this way, an appropriate denoising algorithm can be selected based on the actual environmental noise conditions to ensure denoising effectiveness and speech signal quality.
[0088] Next, a pre-stored mapping relationship between preset signal strength values and translation parameters can be stored. The translation parameters may include the translation algorithm and its related algorithm control parameters (controlling the number of translated words, controlling the depth of translation comprehension, controlling the emotional content of the language, etc.). Then, based on this mapping relationship, the first translation parameter corresponding to the first signal strength value is determined. Finally, the fifth speech signal is converted into the first text content according to the first translation parameter. In this way, the translation effect, such as the number of translated words, the depth of translation comprehension, and the emotional content of the language, can be dynamically adjusted based on the signal strength value, which helps to improve the communication efficiency of the walkie-talkie.
[0089] Consistent with the above embodiments, please refer to Figure 5 , Figure 5 This is another structural schematic diagram of a first walkie-talkie device provided in an embodiment of the present invention. The first walkie-talkie device includes a processor, a memory, a communication interface, and one or more programs. The one or more programs are stored in the memory and configured to be executed by the processor. In this embodiment of the present invention, the first walkie-talkie device includes a noise sensor, a microphone module, a communication module, and a transmit button. The program includes instructions for performing the following steps:
[0090] When the first walkie-talkie device and the second walkie-talkie device are in a communication connection state, the first signal strength value between the first walkie-talkie device and the second walkie-talkie device is determined by the communication module;
[0091] When the transmit button is pressed, the user's first voice signal is acquired through the microphone module;
[0092] The first environmental noise parameter is collected by the noise sensor;
[0093] The first speech signal is processed based on the first signal strength value and the first environmental noise parameter to obtain the first message;
[0094] When the transmit button is released, the first message is sent to the second walkie-talkie device.
[0095] The first walkie-talkie device can be used to implement some or all of the steps of any of the above walkie-talkie control methods, which will not be elaborated here.
[0096] Figure 6 This is a functional unit block diagram of a walkie-talkie control device 600 according to an embodiment of the present invention. The walkie-talkie control device 600 is applied to a first walkie-talkie device, which includes a noise sensor, a microphone module, a communication module, and a transmit button. The walkie-talkie control device 600 includes:
[0097] The determining module 610 is used to determine a first signal strength value between the first walkie-talkie device and the second walkie-talkie device through the communication module when the first walkie-talkie device and the second walkie-talkie device are in a communication connection state.
[0098] The acquisition module 620 is used to acquire a first voice signal from the user through the microphone module and acquire a first ambient noise parameter through the noise sensor when the transmit button is pressed.
[0099] Processing module 630 is used to process the first voice signal according to the first signal strength value and the first environmental noise parameter to obtain a first message;
[0100] The transmitting module 640 is used to transmit the first message to the second walkie-talkie device when the transmit key is released.
[0101] Optionally, in processing the first speech signal based on the first signal strength value and the first environmental noise parameter to obtain the first message, the processing module 630 is specifically used for:
[0102] The first speech signal is denoised based on the first environmental noise parameter to obtain the second speech signal.
[0103] When the first signal strength value is greater than or equal to the first threshold, the second voice signal is used as the first message;
[0104] When the first signal strength value is less than the first threshold and greater than the second threshold, the first signal size of the second speech signal is determined, the first compression processing parameter is determined according to the first signal size, the second speech signal is compressed according to the first compression processing parameter to obtain a third speech signal, and the first message is generated according to the third speech signal and the first compression processing parameter; the second threshold is less than the first threshold.
[0105] When the first signal strength value is less than or equal to the second threshold and greater than the third threshold, the second signal size of the second speech signal is determined; the second compression processing parameter is determined according to the second signal size; the second speech signal is compressed according to the second compression processing parameter to obtain a fourth speech signal; the second speech signal is converted into first text content; the first message is generated according to the fourth speech signal, the first text content and the second compression processing parameter; the second threshold is less than the third threshold.
[0106] When the first signal strength value is less than or equal to the third threshold, the second voice signal is converted into second text content; the first message is generated based on the second text content.
[0107] Optionally, in the step of performing noise reduction processing on the first speech signal based on the first environmental noise parameters to obtain the second speech signal, the processing module 630 is specifically used for:
[0108] The first speech signal is divided into multiple segments according to the first division method to obtain multiple speech signals;
[0109] The first environmental noise parameter is divided into multiple segments according to the first division method to obtain multiple segments of environmental noise parameter;
[0110] The signal-to-noise ratio (SNR) of each segment is determined based on the multiple environmental noise parameters and the multiple speech signals, resulting in multiple SNRs.
[0111] Based on the multiple signal-to-noise ratios, the multiple speech signals are denoised to obtain the denoised speech signals.
[0112] The noise-reduced multiple speech signals are spliced together to obtain the second speech signal.
[0113] In specific implementation, the functions of each program module of the walkie-talkie control device in this embodiment can be specifically implemented according to the methods in the above method embodiments. The specific implementation process can be referred to the relevant descriptions in the above method embodiments, which will not be repeated here.
[0114] This invention also provides a computer storage medium storing a computer program for electronic data interchange, which causes a computer to perform some or all of the steps of any of the methods described in the above method embodiments.
[0115] This invention also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. This computer program product can be a software installation package.
[0116] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0117] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0118] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical or other forms.
[0119] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0120] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0121] If the aforementioned integrated units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0122] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage device, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0123] The embodiments of the present invention have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A walkie-talkie control method, characterized in that, Applied to a first walkie-talkie device, the first walkie-talkie device including a noise sensor, a microphone module, a communication module, and a transmit key, the method includes: When the first walkie-talkie device and the second walkie-talkie device are in a communication connection state, the first signal strength value between the first walkie-talkie device and the second walkie-talkie device is determined by the communication module; When the transmit button is pressed, the user's first voice signal is acquired through the microphone module; The first environmental noise parameter is collected by the noise sensor; The first speech signal is processed based on the first signal strength value and the first environmental noise parameter to obtain the first message; When the transmit button is released, the first message is sent to the second walkie-talkie device.
2. The method as described in claim 1, characterized in that, The step of processing the first speech signal based on the first signal strength value and the first environmental noise parameter to obtain the first message includes: The first speech signal is denoised based on the first environmental noise parameter to obtain the second speech signal. When the first signal strength value is greater than or equal to the first threshold, the second voice signal is used as the first message; When the first signal strength value is less than the first threshold and greater than the second threshold, the first signal size of the second speech signal is determined, the first compression processing parameter is determined according to the first signal size, the second speech signal is compressed according to the first compression processing parameter to obtain a third speech signal, and the first message is generated according to the third speech signal and the first compression processing parameter; the second threshold is less than the first threshold. When the first signal strength value is less than or equal to the second threshold and greater than the third threshold, the second signal size of the second speech signal is determined; the second compression processing parameter is determined according to the second signal size; the second speech signal is compressed according to the second compression processing parameter to obtain a fourth speech signal; the second speech signal is converted into first text content; the first message is generated according to the fourth speech signal, the first text content and the second compression processing parameter; the second threshold is less than the third threshold. When the first signal strength value is less than or equal to the third threshold, the second voice signal is converted into second text content; the first message is generated based on the second text content.
3. The method as described in claim 2, characterized in that, The step of performing noise reduction processing on the first speech signal based on the first environmental noise parameter to obtain the second speech signal includes: The first speech signal is divided into multiple segments according to the first division method to obtain multiple speech signals; The first environmental noise parameter is divided into multiple segments according to the first division method to obtain multiple segments of environmental noise parameter; The signal-to-noise ratio (SNR) of each segment is determined based on the multiple environmental noise parameters and the multiple speech signals, resulting in multiple SNRs. Based on the multiple signal-to-noise ratios, the multiple speech signals are denoised to obtain the denoised speech signals. The noise-reduced multiple speech signals are spliced together to obtain the second speech signal.
4. The method according to any one of claims 1-3, characterized in that, The method further includes: Identify the first language type corresponding to the first speech signal; Obtain the language type set supported by the second walkie-talkie device, wherein the language type set includes at least one second language type; When the first language type matches the target second language type in the language type set, the step of processing the first speech signal according to the first signal strength value and the first environmental noise parameter to obtain the first message is performed, wherein the target second language type is one of the at least one second language types.
5. The method as described in claim 4, characterized in that, The method further includes: When the first language type is inconsistent with any second language type in the language type set, the first voice signal is translated into third text content corresponding to any second language type supported by the second walkie-talkie device based on the first signal strength value and the first environmental noise parameter. A second message is generated based on the content of the third text. When the transmit key is released, the second message is sent to the second walkie-talkie device.
6. The method as described in claim 5, characterized in that, The step of translating the first speech signal into third text content corresponding to any second language type supported by the second walkie-talkie device based on the first signal strength value and the first environmental noise parameter includes: The first speech signal is denoised based on the first environmental noise parameter to obtain the fifth speech signal. The first translation parameter is determined based on the first signal strength value; The fifth speech signal is converted into the third text content according to the first translation parameters.
7. A walkie-talkie control device, characterized in that, An application to a first walkie-talkie device, the first walkie-talkie device including a noise sensor, a microphone module, a communication module, and a transmit button, the device comprising: The determining module is used to determine a first signal strength value between the first walkie-talkie device and the second walkie-talkie device through the communication module when the first walkie-talkie device and the second walkie-talkie device are in a communication connection state; The acquisition module is used to acquire the user's first voice signal through the microphone module and to acquire the first ambient noise parameter through the noise sensor when the transmit button is pressed. The processing module is configured to process the first speech signal according to the first signal strength value and the first environmental noise parameter to obtain a first message; The transmitting module is used to send the first message to the second walkie-talkie device when the transmit key is released.
8. The apparatus as claimed in claim 7, characterized in that, In processing the first speech signal based on the first signal strength value and the first environmental noise parameter to obtain the first message, the processing module is specifically used for: The first speech signal is denoised based on the first environmental noise parameter to obtain the second speech signal. When the first signal strength value is greater than or equal to the first threshold, the second voice signal is used as the first message; When the first signal strength value is less than the first threshold and greater than the second threshold, the first signal size of the second voice signal is determined, the first compression processing parameter is determined according to the first signal size, the second voice signal is compressed according to the first compression processing parameter to obtain the third voice signal, and the first message is generated according to the third voice signal and the first compression processing parameter. The second threshold is less than the first threshold; When the first signal strength value is less than or equal to the second threshold and greater than the third threshold, the second signal size of the second speech signal is determined; the second compression processing parameter is determined according to the second signal size; the second speech signal is compressed according to the second compression processing parameter to obtain a fourth speech signal; the second speech signal is converted into first text content; the first message is generated according to the fourth speech signal, the first text content and the second compression processing parameter; the second threshold is less than the third threshold. When the first signal strength value is less than or equal to the third threshold, the second voice signal is converted into second text content; the first message is generated based on the second text content.
9. The apparatus according to claim 8, characterized in that, In the process of performing noise reduction processing on the first speech signal based on the first environmental noise parameter to obtain a second speech signal, the processing module is specifically used for: The first speech signal is divided into multiple segments according to the first division method to obtain multiple speech signals; The first environmental noise parameter is divided into multiple segments according to the first division method to obtain multiple segments of environmental noise parameter; The signal-to-noise ratio (SNR) of each segment is determined based on the multiple environmental noise parameters and the multiple speech signals, resulting in multiple SNRs. Based on the multiple signal-to-noise ratios, the multiple speech signals are denoised to obtain the denoised speech signals. The noise-reduced multiple speech signals are spliced together to obtain the second speech signal.
10. A computer-readable storage medium, characterized in that, A computer program is stored, wherein the computer program causes the computer to perform the method as described in any one of claims 1-6.