Audio file construction method, audio processing equipment and storage medium

By splitting the ECG into picture segments and matching templates or using classification models to obtain sub-audio, synthesizing commemorative audio files, the problem of poor information expression ability when the ECG is a souvenir is solved, improving user experience and reducing costs.

CN119811358AActive Publication Date: 2025-04-11GOERTEK INC
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411774084.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-04-11
Estimated Expiration
2044-12-04

AI Technical Summary

Technical Problem

In the prior art, the noise reduction control scheme does not match the user's expectations, resulting in poor user experience, especially when using the electrocardiogram as a souvenir, the information expression ability is poor.

Method used

By obtaining the target user's ECG, split it into ECG segments, match the pre-stored ECG segment templates, or obtain sub-audio through classification models, and synthesize commemorative audio files based on the sub-audio.

Benefits of technology

It realizes the conversion of the electrocardiogram into a commemorative audio file that matches the actual heartbeat sound at the time of the electrocardiogram acquisition, which improves the information expression ability and user experience of electronic souvenirs, while reducing the cost and complexity of heart sound data collection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119811358A_ABST
    Figure CN119811358A_ABST
Patent Text Reader

Abstract

The invention discloses an audio file construction method, audio processing equipment and a storage medium, an electrocardiogram corresponding to a target user is firstly acquired, then at least one sub-audio matched with the electrocardiogram is acquired according to the electrocardiogram, and then a commemorative audio file corresponding to the electrocardiogram is synthesized according to the sub-audio. Therefore, the electrocardiogram is converted into the commemorative audio file matched with the actual heartbeat sound at the electrocardiogram collection moment. Therefore, the expression ability of the information of the electronic souvenir is effectively improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a method for constructing an audio file, an audio processing device, and a storage medium. Background Art

[0002] An electrocardiogram (ECG) is a graphical representation of the heart's electrical activity. It detects the heart's electrical signals by placing electrodes on the body's surface, which are then recorded and form a series of waveforms and line segments. In some commemorative scenes, there is a need to save the ECG at the corresponding time to commemorate the corresponding moment. For example, there are commemorative scenes such as the first detection of fetal heartbeats. However, since the ECG is displayed by waveforms and line segments, it is difficult for people without professional backgrounds to obtain information from the ECG, resulting in a defect of poor information expression when the ECG is used as a souvenir. Summary of the invention

[0003] The main purpose of this application is to provide an audio file construction method, an audio processing device and a storage medium, aiming to solve the technical problem in the related art that the noise reduction control scheme does not meet the user's expectations, resulting in poor user experience.

[0004] To achieve the above object, an embodiment of the present application provides a method for constructing an audio file, the method comprising:

[0005] Obtain the electrocardiogram corresponding to the target user;

[0006] According to the electrocardiogram, obtaining at least one sub-audio matching the electrocardiogram;

[0007] A memorial audio file corresponding to the electrocardiogram is synthesized according to the sub-audio.

[0008] In the embodiment of the present application, the step of acquiring at least one sub-audio matching the electrocardiogram according to the electrocardiogram includes:

[0009] According to the cardiac cycle, splitting the electrocardiogram into at least two electrocardiogram segments, wherein the electrocardiogram segments are composed of electrocardiogram data corresponding to one or more cardiac cycles;

[0010] The sub-audio is acquired according to the electrocardiogram segment.

[0011] In the embodiment of the present application, the step of acquiring the sub-audio according to the electrocardiogram segment includes:

[0012] Determining a target electrocardiogram segment template according to a degree of matching between the electrocardiogram segment and a pre-stored electrocardiogram segment template;

[0013] The sub-audio associated with the target electrocardiogram segment template is obtained.

[0014] In the embodiment of the present application, the step of acquiring the sub-audio according to the electrocardiogram segment includes:

[0015] Inputting the electrocardiogram segment into a pre-trained classification model to obtain a classification corresponding to the electrocardiogram segment;

[0016] The sub-audio associated with the category is obtained.

[0017] In the embodiment of the present application, the step of synthesizing the commemorative audio file corresponding to the electrocardiogram according to the sub-audio includes:

[0018] Determining a splicing order of the sub-audios according to positions of the electrocardiogram segments in the electrocardiogram;

[0019] The sub-audios are sequentially spliced ​​together according to the splicing order to obtain the memorial audio file.

[0020] In the embodiment of the present application, after the step of obtaining the electrocardiogram corresponding to the target user, the following step is further included:

[0021] Obtaining the number of cardiac cycles and / or detection duration corresponding to the electrocardiogram;

[0022] If the number of cardiac cycles is greater than a preset number, and / or the detection duration is greater than a preset duration, performing a step of acquiring at least one sub-audio matching the electrocardiogram according to the electrocardiogram;

[0023] Otherwise, output a prompt message.

[0024] In the embodiment of the present application, the step of obtaining the electrocardiogram corresponding to the target user includes:

[0025] In response to the commemorative audio file generation instruction, obtaining the biological signal collected by the smart wearable device;

[0026] The electrocardiogram is generated according to the biological signal.

[0027] In the embodiment of the present application, after the step of synthesizing the memorial audio file corresponding to the electrocardiogram according to the sub-audio, the method further includes:

[0028] In response to a file saving instruction, the commemorative audio file is saved in association with identification information of a triggering end of the file saving instruction; and / or

[0029] In response to the file saving instruction, the memorial audio file is saved locally.

[0030] An embodiment of the present application also provides an audio processing device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the audio file construction method as described above.

[0031] An embodiment of the present application further provides a storage medium, which is a computer-readable storage medium. A computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the method for constructing an audio file as described above are implemented.

[0032] The embodiment of the present application discloses a method for constructing an audio file and an audio processing device. First, an electrocardiogram corresponding to the target user is obtained, and then, based on the electrocardiogram, at least one sub-audio matching the electrocardiogram is obtained, and then a commemorative audio file corresponding to the electrocardiogram is synthesized based on the sub-audio. Thereby, the electrocardiogram is converted into a commemorative audio file that matches the actual heartbeat sound at the moment of electrocardiogram acquisition. This effectively improves the information expression ability of the electronic souvenir and improves the user experience. At the same time, compared with the solution of directly collecting heart sounds, this solution does not require an additional heart sound acquisition device, which improves the convenience of heart sound data collection and reduces the cost of heart sound data collection. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a flowchart of an embodiment of a method for constructing an audio file involved in an embodiment of the present application;

[0034] Figure 2 It is a flowchart of another embodiment of the embodiment scheme of the present application;

[0035] Figure 3 This is a flow chart of another embodiment of the present application;

[0036] Figure 4 This is a schematic diagram of a save interface according to another embodiment of the present application;

[0037] Figure 5 This is a schematic diagram of the structure of the audio processing device of this application.

[0038] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0039] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0040] The beating of the heart is the embodiment of life. The need to preserve the sound of the heartbeat as a memorial can appear in a variety of situations, which are often closely related to life, emotions, important moments or artistic innovation. By preserving the sound of the heartbeat, people can more deeply feel the preciousness of life, the depth of emotions and the passage of time.

[0041] The heartbeat of a newborn baby symbolizes the beginning of a new life and has a high commemorative value for parents and family members. During the growth of a child, recording its heartbeat can serve as a testimony of growth and leave precious memories.

[0042] When someone has experienced a serious health problem or surgery and has successfully recovered, recording their heartbeat can serve as a commemoration of an important milestone. For people with heart disease or undergoing heart surgery, the heartbeat may symbolize the tenacity of life and the hope of recovery.

[0043] In romantic relationships, keeping your partner's heartbeat as a keepsake can express deep love and intimacy. In family relationships, recording the heartbeats of family members can strengthen the connection and bond between each other. Recording heartbeats can be a unique way to remember important anniversaries, birthdays, or celebrations, capturing the emotion and atmosphere of that moment. At important turning points in life, such as graduation, marriage, or the birth of a child, heartbeats can serve as a testimony of personal growth.

[0044] In the related art, in order to commemorate the heartbeat at the moment of response, the electrocardiogram at the moment of response can only be collected through a smart bracelet or other collection equipment as a commemoration. The electrocardiogram is a graphical representation method of recording the electrical activity of the heart. It detects the electrical signals of the heart by placing electrodes on the surface of the body, which are then recorded and form a series of waveforms and line segments. However, since the electrocardiogram is displayed by waveforms and line segments, it is difficult for people without professional background to obtain information from the electrocardiogram, resulting in the defect of poor information expression ability when the electrocardiogram is used as a souvenir.

[0045] In order to solve the above-mentioned problems existing in the related art, the present application proposes a control scheme for an audio processing device. In the scheme proposed in the present application, after obtaining the electrocardiogram of the target user, the audio processing device obtains the corresponding sub-audio based on the electrocardiogram, and then constructs a commemorative audio based on the sub-audio. Thereby, the purpose of obtaining the sound of the heartbeat at the corresponding moment to commemorate the corresponding moment is achieved. Because sound has better information transmission capabilities than electrocardiograms. This allows users to resonate with the emotions of the corresponding moment by playing the corresponding commemorative audio files when they need to review the corresponding moment. This effectively improves the information expression ability of the souvenir and achieves the effect of improving the user experience.

[0046] For ease of understanding, the technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0047] Please refer to Figure 1 In an optional implementation scheme, the method for constructing an audio file includes the following steps S10 to S30:

[0048] S10: Obtaining an electrocardiogram corresponding to the target user;

[0049] In this embodiment, the method for constructing the above-mentioned audio file can be used to control the intelligent wearable device to synthesize a commemorative audio file, or it can also be executed on a server, a mobile phone, a tablet computer and other electronic devices to construct a commemorative audio file. In some variant implementation schemes, the server, the intelligent device and / or the intelligent wearable device can jointly construct a system, and then achieve the purpose of synthesizing the commemorative audio file based on the system. The purpose of the scheme provided in this embodiment is to synthesize the corresponding commemorative audio file according to the electrocardiogram corresponding to the target user. Any implementation method that is derived from the method provided in this embodiment is within the scope of protection of this application.

[0050] Optionally, as an implementation scheme based on a smart watch or a smart bracelet, if a commemorative audio file generation instruction is triggered, the biological signals collected by the smart wearable device can be obtained, and then the electrocardiogram is generated according to the biological signals.

[0051] Exemplarily, the smart bracelet can be connected to the smart terminal for communication, and the user triggers the commemorative audio file generation instruction through the interactive interface in the smart terminal, and then forwards the instruction to the smart bracelet. When the smart bracelet receives the commemorative audio file generation instruction, it collects ECG data and sends it to the smart terminal for the smart terminal to generate an electrocardiogram. Alternatively, after the smart bracelet collects ECG data, it first generates an electrocardiogram and sends it to the smart terminal. Similarly, the smart bracelet can also respond to the control instructions of the server or other terminals, collect basic data for generating an electrocardiogram or directly generate an electrocardiogram, and then feed back the corresponding data to the corresponding triggering end. Alternatively, it can also be directly through the interactive interface of the smart bracelet itself to trigger the commemorative audio file generation instruction, and then the smart bracelet responds to the instruction to collect ECG data or generate an electrocardiogram. It can be understood that in this way, depending on the specific implementation architecture, different terminals can be used to trigger the commemorative audio file generation instruction, as well as subsequent data processing actions. The smart bracelet serves as a terminal for collecting basic data.

[0052] For example, a smart bracelet is provided with an ECG sensor for generating a memorial audio file. In response to the commemorative audio file generation instruction, the smart bracelet system sends a start signal to the ECG sensor, and the sensor starts to collect the user's ECG signal. The collected ECG signal is first amplified and filtered to improve the signal-to-noise ratio. The amplified and filtered analog signal is sent to an analog-to-digital converter (ADC) for analog-to-digital conversion and converted into a digital signal.

[0053] If the data processing stage is performed on a smart bracelet, the converted digital signal is first cached in the local memory of the bracelet. The system further processes the cached data, such as denoising, baseline correction, etc., to obtain a more accurate ECG waveform. The system then identifies key features in the ECG waveform, such as the R wave (ventricular depolarization wave), and calculates parameters such as heart rate and RR interval, and generates an electrocardiogram based on the corresponding description. Optionally, the bracelet can send the processed data to the user's smartphone or other smart device via the Bluetooth module; the data can be uploaded to a cloud server for further storage and analysis.

[0054] Optionally, in another optional implementation, the smart bracelet automatically collects the user's electrocardiogram when recognizing that the user is currently at an important anniversary, birthday or celebration.

[0055] For example, the smart bracelet is connected to the user's smartphone via Bluetooth or Wi-Fi and integrated with the smartphone's calendar application, thereby synchronizing the user's calendar events, including important anniversaries, birthdays, and celebrations.

[0056] The wristband software continuously monitors synchronized calendar events to find important dates that are about to happen or are happening. When an event matching a preset keyword (such as "birthday", "anniversary", "celebration") is detected, the ECG collection preparation process is triggered.

[0057] Some time before the event begins (such as 30 minutes), the bracelet notifies the user through vibration and screen prompts that the ECG will be automatically collected. The user is provided with the option to choose whether to continue the collection to ensure user privacy and autonomy. If the user chooses to continue, the bracelet software will remind the user of the privacy policy of ECG collection again to ensure that the user clearly understands how the data will be used and stored.

[0058] As an optional setting, the user can also be guided through the bracelet screen or the supporting APP on how to wear the bracelet correctly to ensure the accuracy of ECG collection. For example, suggestions such as adjusting the position of the bracelet and keeping still can be output.

[0059] It should be noted that other automatic triggering methods for ECG collection can also be set based on functional design requirements. For example, the user's heart rate and / or blood oxygen saturation can be detected as a trigger condition for ECG collection. For example, when the heart rate changes in accordance with the changing pattern of the exciting scene, it is determined that the current period is worth remembering, thereby automatically triggering the collection of the ECG. Or when the blood oxygen saturation is lower than the threshold, it is determined that the current period is dangerous, and the ECG can be collected as a diagnostic aid and as the basis for generating a commemorative audio file.

[0060] Optionally, in a scenario that does not rely on a smart bracelet, an ECG upload interface can be set in the user interaction interface, so that the user can upload an ECG of a picture type or an ECG of other data types to the audio processing device based on the upload interface, so that the audio processing device can obtain the ECG of the target user.

[0061] S20: acquiring, according to the electrocardiogram, at least one sub-audio matching the electrocardiogram;

[0062] After the electrocardiogram is obtained, at least one sub-audio for constructing a memorial audio file can be obtained according to the electrocardiogram, wherein the sub-audio is a pre-stored heartbeat sound.

[0063] As an optional solution, the acquired electrocardiogram is split into at least two electrocardiogram segments according to the cardiac cycle, wherein the electrocardiogram segment is composed of electrocardiogram data corresponding to one or more cardiac cycles, and then the sub-audio is acquired according to the electrocardiogram segment.

[0064] For example, cardiac cycle detection can be performed based on an electrocardiogram, for example, an R wave detection algorithm is used to automatically identify the R wave position in the electrocardiogram, wherein the R wave is a peak in the electrocardiogram that marks ventricular depolarization, and its appearance marks the beginning of the cardiac cycle. Then, the starting point and the end point of each cardiac cycle are determined according to the R wave position to calculate the length of the cardiac cycle.

[0065] Then, according to the preset n value (n is a positive integer representing the number of cardiac cycles in each segment), the total duration of each segment is calculated. Then, starting from the starting position of the electrocardiogram, the electrocardiogram signal is divided into multiple electrocardiogram segments containing n cardiac cycles according to the calculated segment duration. For the last segment, if the remaining signal is not enough to constitute a complete cardiac cycle, or the remaining signal is less than a cardiac cycle, it can be discarded or treated separately as an incomplete segment. Optionally, considering that the length of the cardiac cycle may vary, a dynamic calculation method can be used, that is, the approximate duration of each segment is estimated based on the average length of the first m (m≥n) cardiac cycles.

[0066] In one implementation, after the electrocardiogram is split into multiple electrocardiogram segments, a target electrocardiogram segment template may be determined according to a matching degree between the electrocardiogram segments and a pre-stored electrocardiogram segment template, and the sub-audio associated with the target electrocardiogram segment template may be obtained.

[0067] Exemplarily, pre-stored ECG segment templates are first loaded from a database. These ECG segment templates are associated with a sub-audio. The sub-audio is the sound of a heartbeat or the sound of multiple heartbeats. The sound characteristics of the heartbeat sound in the sub-audio associated with different ECG segment templates are different.

[0068] After obtaining the ECG segment and the ECG segment template, feature extraction can be performed, and the matching degree between the two can be determined based on the extracted features. It can be understood that the matching degree calculation is the core link in the ECG analysis software. In order to improve the matching accuracy, more complex algorithms and more feature parameters can be introduced to improve the matching accuracy and robustness. Below, this embodiment provides an optional solution for determining the matching degree:

[0069] In the feature extraction stage, features for calculating the degree of matching can be set based on the time domain, frequency domain and morphological information of the ECG signal. For example, basic features such as the amplitude and interval of the P wave, QRS complex and T wave are extracted as features for matching calculation. Optionally, in order to improve accuracy, multi-scale features such as wavelet transform coefficients, frequency domain features (such as power spectral density), morphological features (such as area, circumference), etc. can be further extracted on this basis. The more features used for judgment, the more accurate the matching calculation result. Optionally, after extracting the features, standardization can also be performed. That is, the extracted features are standardized to eliminate the dimensional differences and numerical range differences between different features.

[0070] After the feature extraction is completed, the matching degree between the electrocardiogram segment and the pre-stored electrocardiogram segment template can be calculated based on the difference between the features and the weight value corresponding to each feature. The electrocardiogram segment template with the highest matching is used as the target electrocardiogram segment template. The sub-audio associated with the target electrocardiogram segment template is obtained.

[0071] In another embodiment, after the electrocardiogram is split into a plurality of electrocardiogram segments, the electrocardiogram segments may be input into a pre-trained classification model to obtain the classification corresponding to the electrocardiogram segments, and the sub-audio associated with the classification may be obtained.

[0072] Exemplarily, in a test environment, while collecting the beating sound of the heart based on a loudspeaker, the corresponding electrocardiogram data can be collected to obtain the mental sounds corresponding to different electrocardiogram data. The two are associated in the form of a key-value pair to generate an electrocardiogram data-heart sound data pair. It can be understood that in order to ensure the richness of the sample, the electrocardiogram data-heart sound data pairs of the same individual in different states can be obtained, and the electrocardiogram data-heart sound data pairs corresponding to multiple different types and states can be obtained with gender, age group, etc. as variables as sample data. Then the classification model is trained based on the sample data. So that the classification model can realize the classification of electrocardiogram segments. Among them, the classification model can select a convolutional neural network (CNN), a support vector machine (SVM) or a random forest, etc. This embodiment is not limited to this.

[0073] After the training is completed, the split ECG segments can be input into the pre-trained classification model to obtain the corresponding classification results. Since the training data is an ECG data-heart sound data pair, after the classification is completed, the model automatically uses the classification results and the corresponding heart sound data as its labels. In this way, the purpose of determining the corresponding sub-audio based on the ECG segment is achieved.

[0074] It should be noted that in the electrocardiogram splitting process involved in this embodiment. When n is greater than 1, an electrocardiogram segment contains at least two cardiac cycles (except for incomplete segments). When n is 1, each cardiac cycle will match a sub-audio, so the final synthesized memorial audio file is closest to the actual heartbeat. When the value of n increases, the data processing overhead is reduced and the processing speed is increased. However, the deviation between the final synthesized memorial audio file and the actual heartbeat also increases. That is, the deviation between the actual heartbeat and the heartbeat corresponding to the memorial audio file is positively correlated.

[0075] S30: synthesizing a memorial audio file corresponding to the electrocardiogram according to the sub-audio.

[0076] After obtaining the sub-audios, the serial numbers corresponding to the sub-audios can be determined according to the positions of the electrocardiogram segments corresponding to the sub-audios in the electrocardiogram, and then the combined positions corresponding to the sub-audios can be determined according to the serial numbers. That is, after the sub-audios are sorted based on the serial numbers, the sub-audios are combined in the sorted order.

[0077] As an optional implementation, during the electrocardiogram segment splitting process, multiple electrocardiogram segments can be sequentially split based on the time sequence. The sequentially split electrocardiogram segments are numbered based on the time sequence to determine the order of the electrocardiogram segments. After the sub-audio segments are obtained based on the electrocardiogram segments, the combination order of the sub-audio segments can be determined according to the order of the electrocardiogram segments.

[0078] Exemplarily, after the audio clips are obtained, initialization is performed first. In the initialization stage, an empty data structure (such as a list, an array, etc.) can be created to store the audio clips to be combined. This data structure will serve as a container for the audio clips. Then a variable is defined to represent the total number of audio clips to be processed.

[0079] Then, the corresponding sub-audio file of the sub-audio is read from the file system and downloaded from the network. Optionally, the integrity and format compatibility of the audio segment can be verified for each acquired sub-audio file. Then, the verified audio segment is stored in the previously created empty data structure.

[0080] In the combination phase, the data structure storing the audio clips is traversed, and each audio clip is read in turn in the order in which it was obtained. Use the functions or methods provided by the audio processing library or tool to connect the read audio clip contents to form a continuous audio stream. When connecting audio clips, you can add silent intervals or other transition effects as needed to ensure a smooth transition between clips.

[0081] Optionally, this embodiment also provides an optional solution. After the electrocardiogram corresponding to the target user is obtained, the complete electrocardiogram is directly matched with the pre-stored electrocardiogram template to determine the target template. Among them, it is considered that the length of the collected electrocardiogram (the length can be described based on the collection time, or based on the number of cardiac cycles recorded therein, which is not limited in this embodiment) may be inconsistent with the electrocardiogram template. In this embodiment, three alignment measures can be taken. The first is to limit the collection process of the electrocardiogram used to synthesize the commemorative audio file by length during the collection process so that the collected electrocardiogram is adapted to the template; the second is that after the electrocardiogram is obtained, a segment that is adapted to the length of the template can be excerpted from the electrocardiogram for synthesizing the commemorative audio file; the third is to match only based on the front segment of the electrocardiogram that is equal to the template as the matching basis.

[0082] After the target ECG segment template is determined, a sub-audio is directly obtained according to the target ECG segment template, and the sub-audio is used as a memorial audio file. It can be understood that in this embodiment, there is no splitting process involved, but an audio of a certain length is directly obtained as a memorial audio file after a match. The advantage of this is that the computational overhead is less than the solution of determining multiple sub-audios according to the split segments, and then synthesizing the memorial audio file based on the combination of multiple sub-audios.

[0083] In the solution provided in this embodiment, the electrocardiogram corresponding to the target user is first obtained, and then at least one sub-audio matching the electrocardiogram is obtained based on the electrocardiogram, and then a memorial audio file corresponding to the electrocardiogram is synthesized based on the sub-audio. This realizes the conversion of the electrocardiogram into a memorial audio file that matches the actual heartbeat sound at the moment of electrocardiogram acquisition. This effectively improves the information expression ability of the electronic souvenir and improves the user experience. At the same time, compared with the solution of directly collecting heart sounds, this solution does not require additional heart sound acquisition devices, which improves the convenience of heart sound data collection and reduces the cost of heart sound data collection.

[0084] Please refer to Figure 2 In another embodiment of the present application, based on the above embodiment, after step S10, it further includes:

[0085] S40: Obtaining the number of cardiac cycles and / or detection duration corresponding to the electrocardiogram;

[0086] S50: Output prompt information.

[0087] In order to ensure the quality of the synthesized memorial audio file, after obtaining the electrocardiogram, it is also possible to first verify whether the amount of data of the electrocardiogram meets the minimum requirements for synthesizing the memorial audio file. The number of cardiac cycles corresponding to the electrocardiogram or the corresponding detection time of the electrocardiogram can be used to determine whether the amount of data meets the requirements.

[0088] Exemplarily, the electrocardiogram signal is first preprocessed, including filtering, denoising and normalization, to ensure signal quality. Subsequently, a strategy combining the differential threshold method and amplitude and position verification is used to accurately detect the R wave. For continuously detected R waves, the time interval, i.e., the RR interval, is calculated, and abnormally long intervals are specially processed. On this basis, the total number of cardiac cycles is counted, and the average value of the RR interval is calculated as a reference indicator for the number of cardiac cycles. The calculated number of cardiac cycles (or average value) is then compared with a preset threshold.

[0089] In the scheme for determining the detection duration, we start from the starting point of the ECG signal and analyze it point by point or segment by segment. Then we enter the feature detection stage, the main goal of which is to identify key feature points in the ECG, such as the R wave. The R wave is a significant peak of the QRS complex in the ECG, marking the beginning of ventricular contraction. By setting appropriate thresholds and using appropriate detection methods, such as differential thresholding or template matching, the algorithm can accurately identify the location of each R wave.

[0090] Once the R wave is identified, the algorithm can calculate the time intervals between adjacent R waves, namely the RR intervals. These intervals represent the time intervals between consecutive ventricular contractions. By recording and counting all RR intervals, the algorithm can calculate the detection duration of the entire ECG signal.

[0091] It is understandable that, when implementing the two judgment conditions of the number of cardiac cycles and the detection duration, when either one of them is greater than the corresponding threshold, the subsequent steps of obtaining at least one sub-audio matching the electrocardiogram according to the electrocardiogram and synthesizing a commemorative audio file corresponding to the electrocardiogram according to the sub-audio are performed. Alternatively, it is also possible to set that only when both conditions are met, the subsequent steps of obtaining at least one sub-audio matching the electrocardiogram according to the electrocardiogram and synthesizing a commemorative audio file corresponding to the electrocardiogram according to the sub-audio are performed. In addition, for the endpoint value, that is, when it is equal to the corresponding threshold, whether the condition is judged to be met and the setting of the specific value of the threshold can be customized according to the needs.

[0092] Optionally, when the conditions are not met, a prompt message can be output. The content expressed by the prompt message can be to re-enter the electrocardiogram, restart the collection process or other content. It is used to prompt that the current electrocardiogram does not meet the requirements. Similarly, the output method of the prompt message can also be customized according to the implementation architecture. For example, the action of synthesizing a commemorative audio file is triggered by a smart watch, that is, it can be output on the smart watch or other terminals connected to it. This embodiment is not limited to this.

[0093] In the technical solution provided in this embodiment, after obtaining the electrocardiogram, the electrocardiogram is first screened. If it does not meet the requirements, a prompt is output, and the subsequent action of producing the commemorative audio is performed only if it meets the requirements. In this way, the quality of the final synthesized commemorative audio is guaranteed.

[0094] Please refer to Figure 3 In another embodiment of the present application, based on the above embodiment, after step S30, the following further includes:

[0095] S60: In response to the file saving instruction, the commemorative audio file is associated with the identification information of the triggering end of the file saving instruction and saved; and / or

[0096] S70: In response to the file saving instruction, the memorial audio file is saved locally.

[0097] After synthesizing the memorial audio file, a saving interface may be displayed. The saving interface may trigger a file saving instruction, thereby controlling the triggering device to save the memorial audio locally or to the cloud.

[0098] Please refer to Figure 4 The save interface is provided with a local save button and / or a cloud save button. The user can trigger the above file save instruction through the local save button and / or the cloud save button. When the trigger device detects that the corresponding button is triggered, the save action is executed.

[0099] Optionally, when local saving is triggered, if the memorial audio file is generated locally, it can be saved directly. Or it can be associated with the corresponding electrocardiogram and saved locally. If some associated saving schemes are adopted, the playback interface of the memorial audio file can be rendered in the subsequent playback interface with the electrocardiogram as the background or cover of the playback interface. If the memorial audio file is generated in the cloud, the memorial audio file can be requested and downloaded from the cloud first, and then the local saving action can be performed.

[0100] In the case of triggering cloud saving, if the file is generated on the server, the identification information of the triggering end of the file saving instruction is first obtained, and then the commemorative audio file is associated with the identification information of the triggering end of the file saving instruction and saved. The identification information can be a login account or a device identification. This embodiment does not limit this.

[0101] Optionally, an audio icon display area and an electrocardiogram display area may be set in the save interface, so that an icon corresponding to the commemorative audio file can be displayed in the audio icon display area. An electrocardiogram display area may also be set in the save interface, and an electrocardiogram used to synthesize the commemorative audio file may be displayed in the area.

[0102] Optionally, a play control button is also provided in the save interface, so that the play status and progress of the commemorative audio file can be controlled through buttons such as start, pause, and progress control. At the same time, the electrocardiogram curve corresponding to the current play progress can also be highlighted according to the play progress, thereby achieving the purpose of linkage with the display effect of the electrocardiogram display area.

[0103] Optionally, in some embodiments, a delete button may be provided in the save interface, and when the delete button is triggered, the synthesized commemorative audio file is deleted. Alternatively, before the save button is triggered, when a user's instruction to exit the save interface is received, the commemorative audio file is directly deleted or the commemorative audio file is deleted after asking the customer.

[0104] In the solution provided in this embodiment, the user can choose local storage and / or cloud storage to save the synthesized memorial audio file, thereby improving the convenience of saving the memorial audio file.

[0105] The present application provides an audio processing device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for constructing an audio file in the above-mentioned embodiment 1.

[0106] Reference below Figure 5 , which shows a schematic diagram of the structure of an audio processing device suitable for implementing the embodiment of the present application. The audio processing device in the embodiment of the present application may include but is not limited to mobile phones, tablets, PCs, servers and smart wearable devices. Figure 5 The audio processing device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0107] like Figure 5 As shown, the audio processing device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the audio processing device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the audio processing device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an audio processing device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0108] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0109] The audio processing device provided by the present application adopts the audio processing device method in the above embodiment, which can solve the technical problem that the electrocardiogram information expression ability is poor, resulting in poor user experience in the electronic souvenir generation solution. Compared with the related art, the beneficial effects of the audio processing device provided by the present application are the same as the beneficial effects of the audio file construction method provided by the above embodiment, and the other technical features in the audio processing device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0110] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0111] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0112] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the audio file construction method in the above-mentioned embodiment.

[0113] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0114] The computer-readable storage medium may be included in the audio processing device; or may exist independently without being assembled into the audio processing device.

[0115] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the audio processing device, the audio processing device can synthesize a commemorative audio file according to the electrocardiogram, thereby improving the user's experience of generating electronic souvenirs.

[0116] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0117] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0118] The modules involved in the embodiments described in the present application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0119] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned method for constructing an audio file, and can solve the technical problem of poor user experience. Compared with the related art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the method for constructing an audio file provided by the above-mentioned embodiment, and will not be elaborated here.

[0120] An embodiment of the present application provides a computer program product, including a computer program, which implements the steps of the audio file construction method as described above when the computer program is executed by a processor.

[0121] The computer program product provided in this application can solve the technical problem of how to improve the user experience. Compared with the related art, the beneficial effects of the computer program product provided in the embodiment of this application are the same as the beneficial effects of the audio file construction method provided in the above embodiment, which will not be repeated here.

[0122] The above are only preferred embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent scope of the present application.

[0123] It should be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element. In the intervals given in this application, the boundary values ​​are all included unless explicitly defined.

[0124] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.

[0125] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for constructing an audio file, characterized in that: The method for constructing the audio file comprises: Obtain the electrocardiogram corresponding to the target user; According to the electrocardiogram, obtaining at least one sub-audio matching the electrocardiogram; A memorial audio file corresponding to the electrocardiogram is synthesized according to the sub-audio.

2. The method for constructing an audio file according to claim 1, characterized in that: The step of acquiring at least one sub-audio matching the electrocardiogram according to the electrocardiogram comprises: According to the cardiac cycle, splitting the electrocardiogram into at least two electrocardiogram segments, wherein the electrocardiogram segments are composed of electrocardiogram data corresponding to one or more cardiac cycles; The sub-audio is acquired according to the electrocardiogram segment.

3. The method for constructing an audio file as claimed in claim 2, characterized in that: The step of acquiring the sub-audio according to the electrocardiogram segment comprises: Determining a target electrocardiogram segment template according to a degree of matching between the electrocardiogram segment and a pre-stored electrocardiogram segment template; The sub-audio associated with the target electrocardiogram segment template is obtained.

4. The method for constructing an audio file as claimed in claim 2, characterized in that: The step of acquiring the sub-audio according to the electrocardiogram segment comprises: Inputting the electrocardiogram segment into a pre-trained classification model to obtain a classification corresponding to the electrocardiogram segment; The sub-audio associated with the category is obtained.

5. The method for constructing an audio file as claimed in claim 2, characterized in that: The step of synthesizing the memorial audio file corresponding to the electrocardiogram according to the sub-audio comprises: Determining a splicing order of the sub-audios according to positions of the electrocardiogram segments in the electrocardiogram; The sub-audios are sequentially spliced ​​together according to the splicing order to obtain the memorial audio file.

6. The method for constructing an audio file according to any one of claims 1 to 5, characterized in that: After the step of obtaining the electrocardiogram corresponding to the target user, the method further includes: Obtaining the number of cardiac cycles and / or detection duration corresponding to the electrocardiogram; If the number of cardiac cycles is greater than a preset number, and / or the detection duration is greater than a preset duration, performing a step of acquiring at least one sub-audio matching the electrocardiogram according to the electrocardiogram; Otherwise, output a prompt message.

7. The method for constructing an audio file according to any one of claims 1 to 5, characterized in that: The step of obtaining the electrocardiogram corresponding to the target user includes: In response to the commemorative audio file generation instruction, obtaining the biological signal collected by the smart wearable device; The electrocardiogram is generated according to the biological signal.

8. The method for constructing an audio file according to any one of claims 1 to 5, characterized in that: After the step of synthesizing the memorial audio file corresponding to the electrocardiogram according to the sub-audio, the method further includes: In response to a file saving instruction, the commemorative audio file is saved in association with identification information of a triggering end of the file saving instruction; and / or In response to the file saving instruction, the memorial audio file is saved locally.

9. An audio processing device, characterized in that: The audio processing device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the audio file construction method according to any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the method for constructing an audio file according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Intelligent wearable equipment and heart rate monitoring method thereof

    CN107007275A

  • Audio processing method and device, storage medium and electronic equipment

    CN111859011A

  • Heart sound segmentation method and device based on hidden Markov cardiac cycle

    CN115828168A

  • Personal monitoring system

    US20160287166A1

  • Methods and devices for processing heart sounds

    US20210251598A1