Voice recording method, device and terminal device
By setting the volume and distance threshold in the terminal device and using the distance measuring module to detect the distance between the sound source and the device, the problem of low recording accuracy of voice notes in noisy environments is solved, and higher recording accuracy is achieved.
Patent Information
- Application Number
- CN202110868350.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-30
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2041-07-30
AI Technical Summary
In the prior art, voice sticky notes are prone to include multiple people’s voices and interfering sounds when the environment is noisy or when multiple people speak, resulting in a low recording accuracy.
By setting a predetermined volume threshold and a predetermined sound distance threshold in the terminal device, and detecting the distance between the sound source and the device using the distance measuring module, recording is performed only when the volume and distance meet certain conditions, thereby filtering out other sound interference in noisy environments.
It effectively reduces other sound interference in noisy environments and improves the accuracy of voice note recording.
Smart Images

Figure CN115691570B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of voice memos, and in particular, to a voice recording method, apparatus, and terminal device. Background Art
[0002] Existing terminal devices have a voice memo function. When users encounter important things that need to be recorded, they can record through the voice memo, which is convenient for subsequent reading or sorting. However, in the prior art, when the ambient sound is noisy and there are multiple people speaking, the voice memo will record the voices of multiple people, and there will be other interfering sounds mixed in the voice memo, resulting in a relatively low accuracy of the voice memo. Summary of the Invention
[0003] To solve the above technical problems, embodiments of this application provide a voice recording method, apparatus, and terminal device.
[0004] In a first aspect, embodiments of this application provide a voice recording method, which is applied to a terminal device. The method includes:
[0005] Collect sound when a voice collection instruction is received;
[0006] Record the sound when the volume of the collected sound is greater than or equal to a predetermined volume threshold, and / or the ranging module of the terminal device detects that the distance between the sound source of the sound and the terminal device is less than or equal to a predetermined sound distance threshold.
[0007] Optionally, the terminal device pre-stores the standard voices of at least one user, and the method further includes:
[0008] Record the voice of the corresponding user when there is a voice in the collected sound that matches the standard voice.
[0009] Optionally, the method further includes:
[0010] Set recording conditions according to a received setting instruction. The setting instruction includes a start instruction and / or a stop instruction. The start instruction and / or the stop instruction include recording control parameters for setting the recording conditions. The recording control parameters include at least one of the following: the predetermined volume threshold, the predetermined sound distance threshold, and the standard voice.
[0011] Optionally, the method further includes:
[0012] Set the predetermined volume threshold and / or the predetermined sound distance threshold according to the input value of the user.
[0013] Optionally, the method further includes:
[0014] Associate the recorded voice with the user identification information and store it, and use the recorded voice as the standard voice.
[0015] In a second aspect, an embodiment of the present application provides a method for generating a voice note, which is applied to a terminal device. The method includes:
[0016] When the terminal device receives a voice collection instruction, it collects a voice.
[0017] When the volume of the collected voice is greater than or equal to a predetermined volume threshold, and / or the ranging module of the terminal device detects that the distance between the sound source of the voice and the terminal device is less than or equal to a predetermined voice distance threshold, the terminal device records the voice.
[0018] After the recording ends, the terminal device sends the recorded voice note to the electronic device.
[0019] The electronic device performs voice recognition on the voice note to convert it into a text note.
[0020] Optionally, the terminal device pre-stores the standard voices of at least one user, and the method further includes:
[0021] When there is a voice in the collected voice that matches the standard voice, the terminal device records the voice of the corresponding user.
[0022] In a third aspect, an embodiment of the present application provides a voice recording device, which is applied to a terminal device. The device includes:
[0023] A collection module, configured to collect a voice when receiving a voice collection instruction.
[0024] A recording module, configured to record the voice when the volume of the collected voice is greater than or equal to a predetermined volume threshold, and / or the ranging module of the terminal device detects that the distance between the sound source of the voice and the terminal device is less than or equal to a predetermined voice distance threshold.
[0025] Optionally, the terminal device pre-stores the standard voices of at least one user, and the recording module is further configured to record the voice of the corresponding user when there is a voice in the collected voice that matches the standard voice.
[0026] Optionally, the device further includes:
[0027] A first setting module, configured to set recording conditions according to a received setting instruction, where the setting instruction includes a start instruction and / or a stop instruction, and the start instruction and / or the stop instruction includes recording control parameters for setting the recording conditions, and the recording control parameters include at least one of the following: the predetermined volume threshold, the predetermined sound distance threshold, and the standard sound.
[0028] Optionally, the device further includes:
[0029] A second setting module, configured to set the predetermined volume threshold and / or the predetermined sound distance threshold according to a user input value.
[0030] Optionally, the device further includes:
[0031] A processing module, configured to associate and store the input voice with user identity information, and use the input voice as the standard sound.
[0032] In a fourth aspect, an embodiment of the present application provides a terminal device, including a memory and a processor, where the memory is used to store a computer program, and the computer program executes the voice recording method provided in the first aspect when running on the processor.
[0033] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program executes the voice recording method provided in the first aspect when running on a processor.
[0034] In the voice recording method, device, and terminal device provided in the present application above, when a voice collection instruction is received, sound is collected; when the volume of the collected sound is greater than or equal to a predetermined volume threshold, and / or the ranging module of the terminal device detects that the distance between the sound source of the sound and the terminal device is less than or equal to a predetermined sound distance threshold, the sound is recorded. In this way, the sound is filtered by the sound volume and / or the distance between the sound source of the sound and the terminal device, reducing interference from other sounds in a noisy environment and improving the accuracy of voice memo recording. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application and should not be regarded as limiting the protection scope of the present application. In each drawing, similar components are numbered similarly.
[0036] Figure 1 FIG. shows a schematic flowchart of a voice recording method provided by an embodiment of the present application;
[0037] Figure 2Shows a schematic structural diagram of a terminal device provided by an embodiment of the present application;
[0038] Figure 3 Shows a schematic diagram of an interface display of a terminal device provided by an embodiment of the present application;
[0039] Figure 4 Shows a schematic flowchart of a method for generating a voice note provided by an embodiment of the present application;
[0040] Figure 5 Shows a schematic structural diagram of a voice recording device provided by an embodiment of the present application;
[0041] Figure 6 Shows another schematic structural diagram of a voice recording device provided by an embodiment of the present application;
[0042] Figure 7 Shows another schematic structural diagram of a voice recording device provided by an embodiment of the present application;
[0043] Figure 8 Shows another schematic structural diagram of a voice recording device provided by an embodiment of the present application. Detailed implementation manners
[0044] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments.
[0045] Generally, the components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the present application claimed, but only represents the selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts fall within the scope of protection of the present application.
[0046] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are only intended to indicate specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be construed as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.
[0047] In addition, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.
[0048] Unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present application pertain. The terms (such as those defined in a general-use dictionary) will be interpreted to have the same meaning as the contextual meaning in the relevant technical field and will not be interpreted to have an idealized meaning or an overly formal meaning, unless clearly defined in various embodiments of the present application.
[0049] Embodiment 1
[0050] An embodiment of the present disclosure provides a voice recording method, which is applied to a terminal device. The terminal device includes a ranging module. The terminal device may be a smart watch, and the smart watch can be worn on the user's hand. The smart watch has hardware structures such as a memory, a processor, a recording module, a Bluetooth module, etc., can implement a recording function, and can be communicatively connected to other electronic devices to send data to the electronic devices.
[0051] Specifically, as Figure 1 shown, the voice recording method provided by the embodiment of the present disclosure includes:
[0052] Step S101, collect sound when a voice collection instruction is received;
[0053] In this embodiment, the terminal device may be a watch, and the voice collection instruction may be generated by the following specific implementation manners:
[0054] Set the function key of the watch as the voice collection function key, and generate a voice collection instruction when the function key is pressed;
[0055] Or, the watch displays a voice note icon, and generates a voice collection instruction when the voice note icon receives a touch operation.
[0056] In this embodiment, the terminal device may be a watch. Please refer to Figure 2 , the terminal device 200 is a watch, including a watch face 201 and a watch band 202. The watch face 201 is provided with a function key 2011. After setting the function key 2011 as the voice collection function key, when the user presses the function key 2011, the watch generates a voice collection instruction.
[0057] Please refer to Figure 3 , Figure 3 shown as Figure 2 a schematic diagram of the watch face interface of the watch face 201 in, the watch face interface 300 displays a note icon 301, and when the note icon 301 receives a touch operation by the user, the watch generates a voice collection instruction.
[0058] Step S102, record the sound when the volume of the collected sound is greater than or equal to a predetermined volume threshold, and / or when the distance measuring module of the terminal device detects that the distance between the sound source of the sound and the terminal device is less than or equal to a predetermined sound distance threshold;
[0059] In this embodiment, the predetermined volume threshold can be a volume within a preset volume range, and the preset volume range can be determined according to experience or multiple tests. The predetermined sound distance threshold can be a sound distance within a preset sound distance range, and the preset sound distance range can be determined according to experience or multiple tests. For example, the predetermined volume threshold can be 30 decibels, and the predetermined sound distance threshold can be 1 meter, etc.
[0060] In this embodiment, the distance measuring module can include an ultrasonic radar, a millimeter wave radar, a lidar, and / or a camera, etc. For the ultrasonic radar, the ultrasonic radar emits ultrasonic waves outward through an ultrasonic wave emitting device, and then uses the receiver to receive the time difference of the ultrasonic waves reflected from the sound source of the sound to measure the distance between the terminal device and the sound source of the sound. For the millimeter wave radar, the millimeter wave radar emits radio waves and receives the echo reflected from the sound source of the sound, and measures the distance between the sound source and the terminal device according to the time difference between the emitted radio wave and the echo. For the lidar, the lidar emits a detection laser beam towards the sound source, and then compares the received target echo reflected from the sound source with the detection laser beam to obtain the distance between the terminal device and the sound source. For the camera, first obtain the camera parameters, the camera captures an image of the sound source, and determines the distance between the terminal device and the sound source according to the sound source image and the trigonometric principle.
[0061] It should be supplementary explained that the implementation process provided in step S102 specifically has the following three types: record the sound when the volume of the collected sound is greater than or equal to a predetermined volume threshold; record the sound when the distance measuring module of the terminal device detects that the distance between the sound source of the sound and the terminal device is less than or equal to a predetermined sound distance threshold; record the sound when the volume of the collected sound is greater than or equal to a predetermined volume threshold and the distance measuring module of the terminal device detects that the distance between the sound source of the sound and the terminal device is less than or equal to a predetermined sound distance threshold.
[0062] In the first method, the terminal device may not include a distance measuring module. The terminal device collects sound through a sound pickup module, judges the size of the sound volume, and records the sound with a volume greater than or equal to a predetermined volume threshold. The collected sound is filtered by the sound volume. In this case, the terminal device has a sound pickup module and can achieve the function of filtering sound without a distance measuring module.
[0063] In the second method, the terminal device includes a ranging module. The terminal device detects the distance between the sound source and the terminal device through the ranging module, determines that the distance between the sound source and the terminal device is less than or equal to a predetermined sound distance threshold, records the sound whose distance between the sound source and the terminal device is less than or equal to the predetermined sound distance threshold, and filters the collected sound according to the distance between the sound source and the terminal device. In this case, even if the terminal device has a ranging module, it can also achieve the function of sound filtering.
[0064] In the third method, the terminal device includes a ranging module. On the one hand, the terminal device collects sound through a sound pickup module and determines the volume of the sound; on the other hand, the terminal device detects the distance between the sound source and the terminal device through the ranging module, determines that the distance between the sound source and the terminal device is less than or equal to a predetermined sound distance threshold, and records the sound whose volume is greater than or equal to a predetermined volume threshold and the distance between the sound source and the terminal device is less than or equal to the predetermined sound distance threshold. In this case, the collected sound is filtered according to the volume of the sound and the distance between the sound source and the terminal device. The terminal device adopts a dual sound filtering mechanism, which effectively improves the effect of sound filtering.
[0065] In this way, the sound is filtered according to the volume of the sound and / or the distance between the sound source of the sound and the terminal device, improving the accuracy of the recorded sound.
[0066] It should be further noted that the terminal device pre-stores the standard sounds of at least one user. The voice recording method of the embodiments of the present disclosure further includes:
[0067] When there is a sound in the collected sound that matches the standard sound, record the sound of the corresponding user.
[0068] In this embodiment, the terminal device may be a watch. The watch can pre-collect the sounds of specified users, use the pre-collected user sounds as standard sounds, and save them. For example, it is possible to specify the collection of the sounds of users A, B, and C, and use the sounds of users A, B, and C as standard sounds. User A may be the owner of the watch. By matching the collected sound with the standard sound, other interfering sounds can be filtered out specifically, and only the user sounds that need to be recorded are recorded, improving the accuracy of sound recording.
[0069] It should be further noted that the voice recording method of the embodiments of the present disclosure further includes:
[0070] Set the recording conditions according to the received setting instruction. The setting instruction includes a start instruction and / or a stop instruction. The start instruction and / or the stop instruction include recording control parameters for setting the recording conditions. The recording control parameters include at least one of the following: the predetermined volume threshold, the predetermined sound distance threshold, and the standard sound.
[0071] In this embodiment, the recording conditions include start recording conditions and / or end recording conditions. The start recording conditions include at least one of the following conditions: the volume of the collected sound is greater than or equal to a predetermined volume threshold, the distance between the sound source of the collected sound and the terminal device is less than or equal to a predetermined sound distance threshold; the collected sound matches the standard sound.
[0072] The end recording conditions include at least one of the following conditions: the volume of the collected sound is less than the predetermined volume threshold, the distance between the sound source of the collected sound and the terminal device is greater than the predetermined sound distance threshold; the collected sound does not match the standard sound.
[0073] Further supplement and explanation: The voice recording method of the embodiments of the present disclosure further includes:
[0074] Setting the predetermined volume threshold and / or the predetermined sound distance threshold according to the input value of the user.
[0075] In this embodiment, the predetermined volume threshold and the predetermined sound distance threshold can be system default values or can be set according to the input value of the user. In this way, the user can adjust the predetermined volume threshold and the predetermined sound distance threshold according to the actual application scenario to meet the requirement of filtering interfering sounds in the actual application scenario and improve the accuracy of sound recording in the actual application scenario.
[0076] Further supplement and explanation: The voice recording method of the embodiments of the present disclosure further includes:
[0077] Associating and storing the recorded sound with the user identity information, and using the recorded sound as the standard sound.
[0078] In this embodiment, the user identity information may include the user's name, identity number, etc. For example, if there are 3 recorded sounds, which are Zhang San, Li Si, and Wang Wu respectively, then the names of Zhang San, Li Si, and Wang Wu and their corresponding sounds are associated and stored as the standard sound. In other embodiments, the name of the user corresponding to the recorded sound can be displayed, and the name of the user whose sound needs to be recorded is selected from the displayed names, and the sound corresponding to the selected user name is used as the standard sound. For example, the users who have recorded sounds include Zhang San, Li Si, and Wang Wu, and the selected user name is Zhang San, then the recorded sound of Zhang San is used as the standard sound.
[0079] The voice recording method provided in this embodiment is applied to a terminal device. When a voice collection instruction is received, the device collects sound. When the volume of the collected sound is greater than or equal to a predetermined volume threshold, and / or the distance measurement module of the terminal device detects that the distance between the sound source of the sound and the terminal device is less than or equal to a predetermined sound distance threshold, the sound is recorded. In this way, the sound is filtered by the sound volume and / or the distance between the sound source and the terminal device, reducing interference from other sounds in a noisy environment and improving the accuracy of voice memo recording.
[0080] Embodiment 2
[0081] In addition, an embodiment of the present disclosure provides a method for generating a voice memo, which is applied to a terminal device. The terminal device includes a distance measurement module.
[0082] Specifically, as Figure 4 shown, the method for generating a voice memo provided in the embodiment of the present disclosure includes:
[0083] Step S401, when the terminal device receives a voice collection instruction, it collects sound;
[0084] Step S402, when the volume of the collected sound is greater than or equal to a predetermined volume threshold, and / or the distance measurement module of the terminal device detects that the distance between the sound source of the sound and the terminal device is less than or equal to a predetermined sound distance threshold, the sound is recorded;
[0085] Step S403, after the recording ends, the terminal device sends the recorded voice memo to the electronic device;
[0086] It should be noted that the specific implementation processes of steps S401 to S402 in this embodiment are the same as those of steps S101 to S102 in Embodiment 1. To avoid repetition, they will not be elaborated here.
[0087] In step S403, the step of ending the recording may include:
[0088] When no sound with a volume greater than or equal to a predetermined volume threshold and / or a distance between the sound source and the terminal device less than or equal to a predetermined sound distance threshold is collected within a predetermined time, the recording ends; or,
[0089] When a deactivation instruction triggered by the user is received, the recording ends.
[0090] It is supplementary to note that the terminal device can be a watch. Please refer to Figure 2 again, and it can be set that the user long presses Figure 2The function key 2011 shown triggers the corresponding deactivation instruction. When the function key 2011 receives a long press operation from the user, the watch triggers the corresponding deactivation instruction. The electronic device can be a mobile phone. In a specific application scenario, after the recording is completed, the watch sends the recorded voice note to the mobile phone.
[0091] In this embodiment, during the process of the terminal device sending the voice note to the electronic device, the electronic device can display a reminder message indicating that it is receiving the voice note, which facilitates the user to check the receiving progress of the voice note and enables the user to timely understand whether the voice note has been completely received.
[0092] Step S404, the electronic device performs speech recognition on the voice note to convert it into a text note.
[0093] In this embodiment, if the electronic device is a mobile phone, for the convenience of the user to read and edit, the mobile phone performs speech recognition on the voice note and converts the voice note into a corresponding text note. In many application scenarios, users often need to view the content of the note or quickly copy the content of the note. Since converting the voice note into a text note is beneficial to improving the user's viewing speed and editing speed and reducing the time for viewing and editing the content of the note.
[0094] It should be supplemented that the terminal device pre-stores the standard voices of at least one user. The method for generating a voice note provided by the embodiments of the present disclosure further includes:
[0095] In the case where there is a voice in the collected voice that matches the standard voice, the terminal device records the voice of the corresponding user.
[0096] In this embodiment, the relevant descriptions of the above steps can refer to the corresponding content in Embodiment 1. To avoid repetition, they will not be elaborated here.
[0097] It should be supplemented that the method for generating a voice note provided by the embodiments of the present disclosure further includes:
[0098] When recording voice notes of multiple users, when the electronic device converts the voice notes of each user into corresponding text notes, corresponding user identification information is added to the voice notes of each user and / or the text notes of each user.
[0099] For example, when recording the voice notes of users Zhang San, Li Si, and Wang Wu, when converting the voice notes of Zhang San, Li Si, and Wang Wu into corresponding text notes, Zhang San's user identification information is added to Zhang San's voice note and / or Zhang San's text note, Li Si's user identification information is added to Li Si's voice note and / or Li Si's text note, and Wang Wu's user identification information is added to Wang Wu's voice note and / or Wang Wu's text note.
[0100] In this way, user identification information can be added to voice notes and / or text notes of different users, facilitating the distinction of voice notes and text notes of different users.
[0101] The voice recording method provided in this embodiment is applied to a terminal device. When the terminal device receives a voice collection instruction, it collects sound; when the volume of the collected sound is greater than or equal to a predetermined volume threshold, and / or the ranging module of the terminal device detects that the distance between the sound source of the sound and the terminal device is less than or equal to a predetermined sound distance threshold, it records the sound; after the recording is completed, the terminal device sends the recorded voice note to the electronic device; the electronic device performs voice recognition on the voice note to convert it into a text note. In this way, the terminal device filters the sound based on the sound volume and / or the distance between the sound source of the sound and the terminal device, reducing interference from other sounds in a noisy environment and improving the accuracy of voice note recording. The electronic device receives the voice note with interference sounds filtered by the terminal device and converts the voice note into a text note, avoiding the confusion or inaccuracy of the note content caused by interference sounds and improving the accuracy of the voice note content.
[0102] Embodiment 3
[0103] In addition, an embodiment of the present disclosure provides a voice recording device, which is applied to a terminal device, and the terminal device includes a ranging module.
[0104] Specifically, as Figure 5 shown, the voice recording device 500 includes:
[0105] A collection module 501, configured to collect sound when receiving a voice collection instruction;
[0106] A recording module 502, configured to record the sound when the volume of the collected sound is greater than or equal to a predetermined volume threshold, and / or the ranging module of the terminal device detects that the distance between the sound source of the sound and the terminal device is less than or equal to a predetermined sound distance threshold.
[0107] Optionally, the terminal device pre-stores standard sounds of at least one user, and the recording module 502 is further configured to record the sound of the corresponding user when there is a sound matching the standard sound in the collected sound.
[0108] Optionally, as Figure 6 shown, the voice recording device 500 further includes:
[0109] The first setting module 503 is configured to set recording conditions according to a received setting instruction, where the setting instruction includes a start instruction and / or a stop instruction, and the start instruction and / or the stop instruction include recording control parameters for setting the recording conditions. The recording control parameters include at least one of the following: the predetermined volume threshold, the predetermined sound distance threshold, and the standard sound.
[0110] Optionally, as Figure 7 shown, the voice recording device 500 further includes:
[0111] A second setting module 504 is configured to set the predetermined volume threshold and / or the predetermined sound distance threshold according to a user input value.
[0112] Optionally, as Figure 8 shown, the voice recording device 500 further includes:
[0113] A processing module 505 is configured to associate and store the input voice with user identity information, and use the input voice as the standard voice.
[0114] The voice recording device 500 provided in this embodiment may implement the voice recording method provided in Embodiment 1. To avoid repetition, details are not described herein again.
[0115] The voice recording device provided in this embodiment, when receiving a voice collection instruction, collects voices; when the volume of the collected voice is greater than or equal to the predetermined volume threshold, and / or the ranging module of the terminal device detects that the distance between the sound source of the voice and the terminal device is less than or equal to the predetermined sound distance threshold, records the voice. In this way, voices are filtered by the voice volume and / or the distance between the sound source of the voice and the terminal device, reducing interference from other voices in a noisy environment and improving the accuracy of voice note recording.
[0116] Embodiment 4
[0117] In addition, an embodiment of the present disclosure provides a terminal device, including a memory and a processor. The memory stores a computer program, and the computer program, when running on the processor, executes the voice recording method provided in Embodiment 1.
[0118] The terminal device provided in this embodiment can implement the voice recording method provided in Embodiment 1. To avoid repetition, details are not described herein again.
[0119] Embodiment 5
[0120] This application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the voice recording method provided in Embodiment 1.
[0121] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM for short), a random access memory (RAM for short), a magnetic disk, an optical disc, or the like.
[0122] The computer-readable storage medium provided in this embodiment can implement the voice recording method provided in Embodiment 1. To avoid repetition, it will not be elaborated here.
[0123] It should be noted that in this article, the term "including", "comprising", or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or terminal including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article, or terminal. Without more limitations, the element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article, or terminal including that element.
[0124] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described embodiment method can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc) and includes several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in various embodiments of the present application.
[0125] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Those of ordinary skill in the art, under the inspiration of the present application and without departing from the spirit and scope protected by the claims of the present application, can also make many forms, all of which fall within the protection scope of the present application.
Claims
1. A voice recording method, characterized in that, Applied to a terminal device, the method includes: When a voice collection instruction is received, collect sound, where the voice collection instruction is an instruction generated and sent by an electronic device communicatively connected to the terminal device when a touch operation is received on a displayed voice note icon; When the volume of the collected sound is greater than or equal to a predetermined volume threshold and the ranging module of the terminal device detects that the distance between the sound source of the sound and the terminal device is less than or equal to a predetermined sound distance threshold, record the sound; After the recording ends, send the voice note corresponding to the recorded sound to the electronic device, so that the electronic device performs voice recognition on the voice note to convert it into a text note, and generates a prompt message based on the voice note, where the prompt message is used to prompt the reception progress of the voice note. Wherein, when voice notes of multiple users are recorded, when the electronic device converts the voice notes of each user into corresponding text notes, corresponding user identification information is added to the voice notes of each user and / or the text notes of each user.
2. The method according to claim 1, characterized in that, The terminal device pre-stores standard voices of at least one user, and the method further includes: When there is a voice in the collected sound that matches the standard voice, record the voice of the corresponding user.
3. The method according to claim 2, wherein The method further includes: Set recording conditions according to a received setting instruction, where the setting instruction includes a start instruction and / or a stop instruction, and the start instruction and / or the stop instruction include recording control parameters for setting the recording conditions, and the recording control parameters include at least one of the following: the predetermined volume threshold, the predetermined sound distance threshold, and the standard voice.
4. The method according to claim 1, wherein The method further includes: Set the predetermined volume threshold and the predetermined sound distance threshold according to the input value of the user.
5. The method according to claim 2, wherein The method further includes: Associate and store the recorded voice with user identity identification information, and use the recorded voice as the standard voice.
6. A method for generating a voice memo, characterized in that, Applied to a terminal device and an electronic device communicatively connected to the terminal device, the method includes: When the terminal device receives a voice collection instruction, collect sound, where the voice collection instruction is an instruction generated and sent by an electronic device communicatively connected to the terminal device when a touch operation is received on a displayed voice note icon; When the volume of the collected sound by the terminal device is greater than or equal to a predetermined volume threshold and the ranging module of the terminal device detects that the distance between the sound source of the sound and the terminal device is less than or equal to a predetermined sound distance threshold, the terminal device records the sound; After the recording ends, the terminal device sends the recorded voice note to the electronic device; The electronic device performs voice recognition on the voice note to convert it into a text note, and generates a prompt message based on the voice note, where the prompt message is used to prompt the reception progress of the voice note. Wherein, when voice notes of multiple users are recorded, when the electronic device converts the voice notes of each user into corresponding text notes, corresponding user identification information is added to the voice notes of each user and / or the text notes of each user.
7. The method according to claim 6, wherein The terminal device prestores the standard voices of at least one user, and the method further includes: When there is a voice in the collected voices that matches the standard voice, the terminal device records the voice of the corresponding user.
8. A voice recording device, characterized in that, Applied to a terminal device, the device includes: A collection module, configured to collect voices when receiving a voice collection instruction, where the voice collection instruction is an instruction generated and sent by an electronic device communicatively connected to the terminal device when a touch operation is received on a displayed voice note icon; A recording module, configured to record the voice when the volume of the collected voice is greater than or equal to a predetermined volume threshold and the ranging module of the terminal device detects that the distance between the sound source of the voice and the terminal device is less than or equal to a predetermined voice distance threshold; After the recording is completed, the voice note corresponding to the recorded voice is sent to the electronic device, so that the electronic device performs voice recognition on the voice note to convert it into a text note, and generates a prompt message based on the voice note, where the prompt message is used to prompt the reception progress of the voice note. Wherein, when voice notes of multiple users are recorded, when the electronic device converts the voice notes of each user into corresponding text notes, corresponding user identity identification information is added to the voice notes of each user and / or the text notes of each user.
9. A terminal device, characterized in that, It includes a memory and a processor, the memory stores a computer program, and the computer program executes the voice recording method according to any one of claims 1 to 5 when running on the processor.
10. A computer-readable storage medium, characterized in that, It stores a computer program, and the computer program executes the voice recording method according to any one of claims 1 to 5 when running on a processor.
Citation Information
Patent Citations
Sound recording control method and sound recording device
CN101458944A
Method for setting recording distance of electronic recording equipment
CN101533666A
Recording method, device and terminal
CN103559907A
Voice saving method and mobile terminal with voice saving function
CN103841243A
Voice interaction wake-up electronic equipment based on microphone signals, method and medium
CN110428806A