A recording method, a multimode terminal and a storage medium

By performing effective audio data detection on the audio path in the broadband module and saving cached data in a timely manner, the problem of incomplete recording files in both narrowband and broadband modules is solved, thus achieving the integrity and validity of the recording files.

CN122179504APending Publication Date: 2026-06-09HYTERA COMM CORP

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HYTERA COMM CORP
Filing Date
2026-01-20
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

In the prior art, the recording files of narrowband modules and broadband modules are incomplete due to transmission delays, especially when the narrowband module sends a recording save command to the broadband module but fails to trigger the storage operation in time, resulting in the loss of some audio data.

Method used

The broadband module implements the detection of valid audio data in the audio path. When valid audio data is detected, caching begins, and when invalid audio data is detected, caching stops. Before receiving a recording command, the cached audio data is saved to a file to avoid storage delay caused by transmission delay.

Benefits of technology

It effectively avoids incomplete recording files, ensures the integrity and validity of recording files, and solves the problem of incomplete recording files caused by transmission delays.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122179504A_ABST
    Figure CN122179504A_ABST
Patent Text Reader

Abstract

This application relates to a recording method, a multi-mode terminal, and a storage medium, comprising: a narrowband module receiving a voice call from a target user; detecting valid audio data in an audio path; when valid audio data is detected in the audio path at a first moment, starting to cache the audio data in the audio path in a target buffer; when valid audio data is detected not in the audio path at a second moment, stopping caching the audio data in the audio path in the target buffer; before the second moment, a wideband module receiving a recording command from the narrowband module, and saving the audio data in the target buffer as an audio file based on the recording command. It is evident that in this application's technical solution, the wideband module can initiate the audio data storage process without waiting for a recording command to be triggered. This mechanism effectively avoids the failure to trigger the storage operation in a timely manner due to transmission delays in the recording command, thereby ensuring the integrity of the recorded file.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of private networks, and in particular to a recording method, a multi-mode terminal, and a storage medium. Background Technology

[0002] In team collaboration scenarios such as industrial production, security patrols, and property management, walkie-talkies are widely used as real-time voice communication tools. Their high immediacy and ease of operation make them core equipment for ensuring the transmission of team instructions and task coordination. With the expansion of application scenarios, users have placed higher demands on the functionality of walkie-talkies, with the preservation of recorded files becoming one of the core requirements.

[0003] Currently, multi-mode terminals are divided into two systems: broadband and narrowband. The two systems operate independently, and all interactive commands require communication through external hardware. The broadband system has the advantages of stronger processing power and larger storage space compared to the narrowband system; while the narrowband system has virtually no additional storage capacity and can only rely on external memory cards.

[0004] Therefore, call recordings for narrowband calls need to be stored in broadband. Due to the inconsistency in processing times between the two systems, the actual recorded audio may be later than the call's occurrence time, thus missing data indicating the call's start. Specifically, first, the user receives audio data through the narrowband module. Second, the narrowband module generates a recording save command based on the user's operation and sends it to the broadband module. Finally, upon receiving the recording save command, the broadband module stores the corresponding audio data as a recording file.

[0005] However, in existing technical solutions, the broadband module only initiates the corresponding audio data storage process after receiving the recording save command. Due to the transmission delay in sending the recording save command from the narrowband module to the broadband module, the broadband module may not trigger the storage operation in time, thus discarding some audio data and ultimately resulting in an incomplete recording file. Summary of the Invention

[0006] This application provides a recording method, a multi-mode terminal, and a storage medium, aiming to solve the technical problem of incomplete recording files in the prior art.

[0007] In a first aspect, embodiments of this application provide a recording method, the method being applied to a multi-mode terminal, the multi-mode terminal comprising: a narrowband module and a broadband module, the method comprising: The narrowband module receives voice calls from the target user; The broadband module performs valid audio data detection on the audio path; When valid audio data is detected in the audio path at the first moment, the audio data in the audio path is cached in the target buffer. When it is detected at the second moment that there is no valid audio data in the audio path, the caching of audio data in the audio path to the target buffer is stopped. The second moment is after the first moment. If the broadband module receives a recording instruction from the narrowband module before the second moment, it saves the audio data in the target buffer as an audio file based on the recording instruction.

[0008] Optionally, the method further includes: If the broadband module does not receive a recording instruction from the narrowband module before the second time point, the audio data in the target buffer is cleared.

[0009] Optionally, the valid audio data detection of the audio path includes: Obtain the target audio data frame from the audio path; Valid audio data detection is performed on the target audio data frame.

[0010] Optionally, the valid audio data detection of the target audio data frame includes: Detect the binary data corresponding to the audio data of the target audio data frame; If the binary data corresponding to the audio data of the target audio data frame is all zeros, or if the binary data corresponding to the audio data of the target audio data frame is all ones, then it is determined that the target audio data frame does not contain valid audio data. If the binary data corresponding to the audio data of the target audio data frame is not all zeros, and the binary data corresponding to the audio data of the target audio data frame is not all ones, then it is determined that the target audio data frame contains valid audio data.

[0011] Optionally, the method further includes: During the time interval between the first time and the second time, the broadband module acquires the identity information of the target user from the narrowband module; The audio file is bound to the identity information to obtain the binding information of the target user; Store the binding information of the target user.

[0012] Optionally, before binding the audio file with the identity information to obtain the binding information of the target user, the method further includes: During the time interval between the first time and the second time, the broadband module receives the location information of the target user from the narrowband module; The step of binding the audio file with the identity information to obtain the binding information of the target user includes: The audio file, the identity information, and the location information are bound together to obtain the binding information of the target user.

[0013] Optionally, when the voice call is a group call, the method further includes: Obtain the binding information of multiple group members in the group corresponding to the group call; Generate a target group chat recording file corresponding to the group call based on the binding information of the multiple group members; Based on the identity information of the group members, the group chat recording file is presented to the user of the multi-mode terminal.

[0014] Secondly, embodiments of this application also provide a multi-mode terminal, including: a narrowband module and a broadband module, wherein, The narrowband module is used to receive voice calls from the target user; The broadband module is used to detect valid audio data in the audio channel; when valid audio data is detected in the audio channel at a first moment, the audio data in the audio channel is cached in the target buffer; when valid audio data is detected not in the audio channel at a second moment, the caching of audio data in the audio channel in the target buffer is stopped, and the second moment is after the first moment. If the broadband module receives a recording instruction from the narrowband module before the second moment, it saves the audio data in the target buffer as an audio file based on the recording instruction.

[0015] Optionally, if the broadband module does not receive a recording instruction from the narrowband module before the second time point, the audio data in the target buffer is cleared.

[0016] Thirdly, embodiments of this application also provide a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the above-described method.

[0017] This application provides a recording method, a multi-mode terminal, and a storage medium. The method is applied to a multi-mode terminal, which includes a narrowband module and a wideband module. The method includes: the narrowband module receiving a voice call from a target user; the wideband module detecting valid audio data in an audio path; when valid audio data is detected in the audio path at a first moment, starting to cache the audio data in the audio path in a target buffer; when no valid audio data is detected in the audio path at a second moment, stopping the caching of the audio data in the audio path in the target buffer, the second moment being after the first moment; if, before the second moment, the wideband module receives a recording instruction from the narrowband module, saving the audio data in the target buffer as an audio file based on the recording instruction. Therefore, in this application's technical solution, the narrowband module receives a group call from a target user; then, the wideband module detects valid audio data in the audio path; when valid audio data is detected in the audio path at a first moment, starting to cache the audio data in the audio path in a target buffer; when no valid audio data is detected in the audio path at a second moment, stopping the caching of the audio data in the audio path in the target buffer. In this process, the second time step occurs after the first time step. Finally, if the broadband module receives a recording command from the narrowband module before the second time step, it saves the audio data in the target buffer as an audio file based on the recording command. Therefore, this technical solution performs valid audio data detection on the audio path. When valid audio data is detected in the audio path at the first time step, it begins caching the audio data in the target buffer. When no valid audio data is detected in the audio path, it stops caching the audio data in the target buffer. Thus, in this technical solution, the broadband module can start the audio data storage process without waiting for a recording command to be triggered. This mechanism effectively avoids the failure to trigger the storage operation in a timely manner due to transmission delays in the recording command, thereby ensuring the integrity of the recording file. Attached Figure Description

[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0021] Figure 1a A schematic flowchart illustrating a recording method provided in an embodiment of this application; Figure 1b A group chat session UI diagram provided for an embodiment of this application; Figure 2 A multi-mode terminal provided in this application embodiment; Figure 3 This is one of the timing diagrams for recording a multi-mode terminal provided in the embodiments of this application; Figure 4 The following is a second example of a multi-mode terminal recording timing provided in the embodiments of this application. Detailed Implementation

[0022] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0023] The following disclosure provides numerous different embodiments or examples for implementing various structures of this application. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of this application. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.

[0024] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0025] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0026] It should also be further understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0027] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if [described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [described condition or event] is detected," or "in response to detection of [described condition or event]."

[0028] To address the technical problem of incomplete audio recordings in existing technologies, this application provides an audio recording device that ensures the integrity of audio recordings.

[0029] Figure 1a This is a flowchart illustrating a recording method provided in an embodiment of this application. In one embodiment, the method is applied to a multi-mode terminal, which includes a narrowband module and a broadband module, and the method includes steps S101-S105.

[0030] S101, Narrowband module receives voice calls from target users.

[0031] It should be noted that the recording method in this application embodiment can be applied to multi-mode terminals. The multi-mode terminal can be a walkie-talkie or a mobile device such as a mobile phone. This application does not impose any limitations on this. Below, this application will use a multi-mode walkie-talkie as an example to describe a recording method in detail.

[0032] In a multi-mode walkie-talkie, the present application example can receive voice calls from a target user through a narrowband module. The voice data of the voice call is sent to an audio codec via the narrowband module, and then sent to an audio accessory, such as a speaker, via the codec.

[0033] S102. Detect effective audio data in the audio path.

[0034] Specifically, when the narrowband module receives a voice call from a target user, the audio path is opened. The wideband module then begins valid audio data detection within the audio path.

[0035] It should be noted that both the narrowband module and the broadband module have their own audio paths for transmitting audio data, and they are both independent and integrated. The broadband module and the narrowband module are also connected via an audio bus. In one embodiment, the narrowband module and the broadband module are connected via both a digital audio bus and an audio connection simulated by an audio codec. The audio path described in this application refers to the data path that transmits the voice data of the narrowband module or the broadband module currently receiving a voice call. Specifically, after the narrowband module receives a voice call, the broadband module can obtain the voice data received by the narrowband module through the audio path.

[0036] It should be noted that the detection process of valid audio data in the audio path will be described in detail in subsequent embodiments of this application. Therefore, it will not be repeated here.

[0037] S103. When valid audio data is detected in the audio path at the first moment, the audio data in the audio path is cached in the target buffer.

[0038] The target buffer is the data buffer of the broadband module. The initial first moment is the time when the broadband module first detects valid audio data in the audio path after the narrowband module receives the call command from the target user. After this initialization, the first moment is the time when the broadband module first detects valid data after detecting invalid data in the audio path.

[0039] S104. When it is detected at the second moment that there is no valid audio data in the audio path, stop caching the audio data in the audio path in the target buffer.

[0040] The second time point is defined as the time following the first time point. The second time point is the time after the first time point when no valid audio data is detected in the audio path for the first time.

[0041] It should be noted that, in this embodiment, the broadband module can stop buffering audio data in the audio path in the target buffer without waiting for a stop recording command. This mechanism effectively avoids the transmission delay caused by the narrowband module's stop recording command being transmitted to the broadband module, which could lead to excessively long recording times in the broadband-saved recording files and the saving of invalid data.

[0042] S105. If the broadband module receives a recording instruction from the narrowband module before the second moment, it saves the audio data in the target buffer as an audio file based on the recording instruction.

[0043] For example, if the second time point is 10 o'clock, and the broadband module has received the recording instruction from the narrowband module before 10 o'clock, the broadband module will save the audio data in the target buffer as an audio file; otherwise, it will clear the audio data in the target buffer to prepare for the next storage of audio data in the audio channel.

[0044] This application provides a recording method. The method is applied to a multi-mode terminal, which includes a narrowband module and a wideband module. The method includes: the narrowband module receiving a voice call from a target user; the wideband module detecting valid audio data in an audio path; when valid audio data is detected in the audio path at a first moment, the module begins caching the audio data in the audio path into a target buffer; when no valid audio data is detected in the audio path at a second moment, caching the audio data in the audio path into the target buffer stops, the second moment being after the first moment; if the wideband module receives a recording instruction from the narrowband module before the second moment, the module saves the audio data in the target buffer as an audio file based on the recording instruction. Therefore, in this application's technical solution, the narrowband module receives a voice call from a target user; then, the wideband module detects valid audio data in the audio path; when valid audio data is detected in the audio path at a first moment, the module begins caching the audio data in the audio path into a target buffer; when no valid audio data is detected in the audio path at a second moment, the module stops caching the audio data in the audio path into the target buffer. In this process, the second moment occurs after the first moment. Finally, if the broadband module has received a recording command from the narrowband module before the second moment, it saves the audio data in the target buffer as an audio file based on the recording command. Therefore, this technical solution performs valid audio data detection on the audio path. When valid audio data is detected in the audio path at the first moment, it begins caching the audio data in the target buffer. When no valid audio data is detected in the audio path, it stops caching the audio data in the target buffer. Thus, in this technical solution, the broadband module can start the pre-storage process of audio data without waiting for a recording command. If a recording command is received, it saves the audio data in the target buffer as a recording file. This mechanism effectively avoids the problem of data not being recorded at the start of a call due to transmission delays in the transmission of recording commands from the narrowband module to the broadband module. It also solves the problem of recording continuing after the call ends or the user stops recording due to transmission delays in the transmission of recording end commands from the narrowband module to the broadband module, resulting in invalid data being recorded. This ensures the integrity and validity of the recording file.

[0045] In one embodiment, the method further includes: S106.

[0046] S106. If the broadband module does not receive a recording instruction from the narrowband module before the second moment, then clear the audio data in the target buffer.

[0047] In this embodiment, the audio data in the target buffer is cleared to prepare for the next storage of audio data in the audio channel.

[0048] In one embodiment, S102 specifically includes the following steps: S1021-S1022.

[0049] S1021. Obtain the target audio data frame from the audio path.

[0050] In this embodiment, multiple audio data frames are periodically acquired from the audio path. Then, valid audio data detection is performed on each audio data frame. The multiple audio data frames include a target audio data frame.

[0051] S1022, Perform valid audio data detection on the target audio data frame.

[0052] It should be noted that this application will take the target audio data frame as an example to explain in detail how to perform effective audio data detection on the target audio data frame.

[0053] In one embodiment, S1022 specifically includes the following steps: S10221-S10223.

[0054] S10221. Detect the binary data corresponding to the audio data of the target audio data frame; S10222. If the binary data corresponding to the audio data of the target audio data frame is all zeros, or if the binary data corresponding to the audio data of the target audio data frame is all ones, then it is determined that the target audio data frame does not contain valid audio data.

[0055] S10223. If the binary data corresponding to the audio data of the target audio data frame is not all zeros and the binary data corresponding to the audio data of the target audio data frame is not all ones, then it is determined that the target audio data frame contains valid audio data.

[0056] It should be noted that S10221-S10223 will be explained in detail below.

[0057] The target audio data frame includes a frame header and payload data, where the payload data is audio data. If all the binary data corresponding to the audio data in the target audio data frame is 1, or if all the binary data corresponding to the audio data in the target audio data frame is 0, then the target audio data frame does not contain valid audio data; otherwise, the target audio data frame contains valid audio data.

[0058] In one embodiment, the method further includes: S107-S109.

[0059] S107. During the time interval between the first and second moments, the broadband module obtains the identity information of the target user from the narrowband module.

[0060] In one embodiment, the broadband module sends the target user's identity information to the narrowband module within the time interval when saving the audio data in the target buffer.

[0061] In another embodiment, when the narrowband module obtains the identity information of the target user of the audio data, it sends the identity information to the broadband module. The broadband module obtains the identity information of the target user when writing audio data to the target buffer.

[0062] S108. Bind the audio file with the identity information to obtain the binding information of the target user.

[0063] S109. Store the binding information of the target user.

[0064] It should be noted that S107-S109 will be explained in detail below.

[0065] The narrowband module can actively send the target user's identity information to the broadband module, or passively respond to a request from the broadband module and send the target user's identity information to the broadband module. In this embodiment, the audio file and the target user's identity information are bound together to obtain the target user's binding information, which is then stored in a database. Users can identify the speaker corresponding to the audio file based on the audio file, and can also retrieve audio files related to the speaker based on the speaker's identity information.

[0066] It's important to note that one audio file corresponds to one speaker. One speaker can correspond to multiple audio files. For conversational recordings, multiple audio clips need to be recorded during a complete call. Each audio clip corresponds to one audio file. For group calls, each audio clip from each member in the group is saved as a separate audio file. Users can clearly view the speaking details of a particular member.

[0067] In yet another embodiment, the method further includes: S110.

[0068] S110, during the time interval between the first and second moments, the broadband module acquires the location information of the target user from the narrowband module.

[0069] The above S108 specifically includes the following steps: S1081.

[0070] S1081. Bind the audio file, identity information, and location information to obtain the binding information of the target user.

[0071] In one embodiment, audio files, identity information, and location information are bound together to obtain the binding information of a target user, which is then stored in a database. The location information can be the latitude and longitude of the speaker. Users can determine the location of the speaker based on the audio file, and can also retrieve audio files related to the speaker based on the speaker's identity information.

[0072] In another embodiment, when the voice call is a group call, the method further includes: S111-S113.

[0073] S111. Obtain the binding information of multiple group members in the corresponding group for the group call.

[0074] S112. Generate a target group chat recording file corresponding to the group call based on the binding information of multiple group members.

[0075] S113. Based on the identity information of the group members, present the group chat recording file to the user of the multi-mode terminal.

[0076] It should be noted that S111-S113 will be explained in detail below.

[0077] Please see Figure 1b , Figure 1b This embodiment of the application provides a UI diagram of a group chat session. When a target user initiates a group call, this embodiment obtains the binding information of multiple group members in the group call. These multiple group members are all members who have spoken in the group corresponding to the group call. The binding information of each group member includes their audio file, identity information, and / or location information. Finally, this embodiment generates a target group chat session recording file corresponding to the group call based on the binding information of the multiple group members, and presents the group chat session recording file to the user of the multi-mode terminal based on the identity information of the group members. In other words, users can know which user sent voice data at what time or from what location through the group chat session, facilitating subsequent tracing or viewing.

[0078] It should be noted that when a target user initiates a call, this embodiment of the application can obtain the target user's binding information and the machine's binding information, and generate a chat session corresponding to the call.

[0079] like Figures 2-4 As shown, Figure 2This application provides a multi-mode terminal for its embodiments. Figure 3 This is one of the timing diagrams for recording a multi-mode terminal provided in the embodiments of this application; Figure 4 The recording timing sequence of a multi-mode terminal provided in this application embodiment is shown in the second example. The multi-mode terminal includes: a narrowband module 201 and a wideband module 202, wherein... The narrowband module 201 is used to receive voice calls from the target user; The broadband module 202 is used to detect valid audio data in the audio path; when valid audio data is detected in the audio path at a first moment, the audio data in the audio path is cached in the target buffer; when valid audio data is detected in the audio path at a second moment, the caching of audio data in the audio path in the target buffer is stopped, and the second moment is after the first moment. If the broadband module 202 receives a recording instruction from the narrowband module 201 before the second moment, it saves the audio data in the target buffer as an audio file based on the recording instruction.

[0080] In one embodiment, if the broadband module 202 does not receive a recording instruction from the narrowband module 201 before the second moment, the audio data in the target buffer is cleared.

[0081] In one embodiment, the broadband module 202 is specifically used for: Obtain the target audio data frame from the audio path; Valid audio data detection is performed on the target audio data frame.

[0082] In one embodiment, the broadband module 202 is specifically used for: Detect the binary data corresponding to the audio data of the target audio data frame; If the binary data corresponding to the audio data of the target audio data frame is all zeros, or if the binary data corresponding to the audio data of the target audio data frame is all ones, then it is determined that the target audio data frame does not contain valid audio data. If the binary data corresponding to the audio data of the target audio data frame is not all zeros, and the binary data corresponding to the audio data of the target audio data frame is not all ones, then it is determined that the target audio data frame contains valid audio data.

[0083] In one embodiment, during the time interval between the first time point and the second time point, the broadband module 202 is further configured to: Obtain the identity information of the target user from the narrowband module 201; The audio file is bound to the identity information to obtain the binding information of the target user; Store the binding information of the target user.

[0084] In one embodiment, during the time interval between the first time point and the second time point, the broadband module 202 is further configured to: Receive the location information of the target user from the narrowband module 201; The audio file, the identity information, and the location information are bound together to obtain the binding information of the target user.

[0085] In one embodiment, when the voice call is a group call, the broadband module 202 is further configured to: Obtain the binding information of multiple group members in the group corresponding to the group call; Generate a target group chat recording file corresponding to the group call based on the binding information of the multiple group members; Based on the identity information of the group members, the group chat recording file is presented to the user of the multi-mode terminal.

[0086] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program may be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.

[0087] Therefore, embodiments of this application also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the terminal recording method provided in any of the foregoing method embodiments.

[0088] The storage medium is a physical, non-transient storage medium, such as a USB flash drive, external hard drive, read-only memory (ROM), magnetic disk, or optical disk, or any other physical storage medium capable of storing program code. The computer-readable storage medium can be non-volatile or volatile.

[0089] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.

[0090] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.

[0091] The steps in the methods of this application embodiment can be adjusted, merged, or deleted according to actual needs. The units in the apparatus of this application embodiment can be merged, divided, or deleted according to actual needs. Furthermore, the functional units in the various embodiments of this application 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.

[0092] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of this application, 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 storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.

[0093] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0094] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Since these modifications and variations fall within the scope of the claims and their equivalents, this application also intends to include these modifications and variations.

[0095] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A recording method, characterized in that, The method is applied to a multi-mode terminal, the multi-mode terminal comprising: a narrowband module and a broadband module, the method comprising: The narrowband module receives voice calls from the target user; The broadband module performs valid audio data detection on the audio path; When valid audio data is detected in the audio path at the first moment, the audio data in the audio path is cached in the target buffer. When it is detected at the second moment that there is no valid audio data in the audio path, the caching of audio data in the audio path to the target buffer is stopped. The second moment is after the first moment. If the broadband module receives a recording instruction from the narrowband module before the second moment, it saves the audio data in the target buffer as an audio file based on the recording instruction.

2. The method according to claim 1, characterized in that, The method further includes: If the broadband module does not receive a recording instruction from the narrowband module before the second time point, the audio data in the target buffer is cleared.

3. The method according to claim 1, characterized in that, The detection of valid audio data in the audio path includes: Obtain the target audio data frame from the audio path; Valid audio data detection is performed on the target audio data frame.

4. The method according to claim 3, characterized in that, The valid audio data detection of the target audio data frame includes: Detect the binary data corresponding to the audio data of the target audio data frame; If the binary data corresponding to the audio data of the target audio data frame is all zeros, or if the binary data corresponding to the audio data of the target audio data frame is all ones, then it is determined that the target audio data frame does not contain valid audio data. If the binary data corresponding to the audio data of the target audio data frame is not all zeros, and the binary data corresponding to the audio data of the target audio data frame is not all ones, then it is determined that the target audio data frame contains valid audio data.

5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: During the time interval between the first time and the second time, the broadband module acquires the identity information of the target user from the narrowband module; The audio file is bound to the identity information to obtain the binding information of the target user; Store the binding information of the target user.

6. The method according to claim 5, characterized in that, Before binding the audio file with the identity information to obtain the binding information of the target user, the method further includes: During the time interval between the first time and the second time, the broadband module receives the location information of the target user from the narrowband module; The step of binding the audio file with the identity information to obtain the binding information of the target user includes: The audio file, the identity information, and the location information are bound together to obtain the binding information of the target user.

7. The method according to claim 5, characterized in that, When the voice call is a group call, the method further includes: Obtain the binding information of multiple group members in the group corresponding to the group call; Generate a target group chat recording file corresponding to the group call based on the binding information of the multiple group members; Based on the identity information of the group members, the group chat recording file is presented to the user of the multi-mode terminal.

8. A multi-mode terminal, characterized in that, include: Narrowband modules and broadband modules, among which, The narrowband module is used to receive voice calls from the target user; The broadband module is used to detect valid audio data in the audio path; when valid audio data is detected in the audio path at a first moment, the audio data in the audio path is cached in the target buffer; when valid audio data is detected in the audio path at a second moment, the caching of audio data in the audio path in the target buffer is stopped, and the second moment is after the first moment. If the broadband module receives a recording instruction from the narrowband module before the second moment, it saves the audio data in the target buffer as an audio file based on the recording instruction.

9. The multi-mode terminal according to claim 8, characterized in that, If the broadband module does not receive a recording instruction from the narrowband module before the second time point, the audio data in the target buffer is cleared.

10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, can implement the method as described in any one of claims 1 to 7.