Speech visualization method and device
Through the speech visualization method and by marking the color of the reading volume, the problem of sensory separation during the reading process is solved, the multi-sensory experience is improved, and the user experience is improved.
Patent Information
- Application Number
- CN202211111612.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-13
- Publication Date
- 2024-10-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
During the reading process, the auditory and visual sensations are separated, and there is a lack of multi-sensory experience, which affects the user experience.
By obtaining the reading voice data, calculating the voice volume, and marking the colors corresponding to different volumes in the text, the voice can be visualized and the visual experience during the reading process can be increased.
Color-marking the reading volume increases the sensory dimension during the reading process, improves the user experience, and enhances the multi-sensory experience of the reading experience.
Smart Images

Figure CN115482833B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a speech visualization method and device. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section.
[0003] When a reciter is reciting or reading an article or document, hearing the sound and reading the article require two sensory organs, ears and eyes, to be completed separately. The sound is perceived through hearing, and the source of the sound perception is single. Summary of the invention
[0004] The embodiment of the present invention provides a speech visualization method for increasing the sensory dimension in the reading process by visualizing the volume of reading aloud and improving the user experience. The method includes:
[0005] Acquire the collected voice data of reading aloud the first text;
[0006] Calculate the voice volume of the voice data in each time period;
[0007] In the first text, the text content corresponding to each time period is marked with a color corresponding to the voice volume.
[0008] Optionally, calculating the voice volume of the voice data in each time period may include:
[0009] Dividing the voice data into voice sub-data of multiple time periods according to a preset time interval;
[0010] Calculate the average volume of the speech in the speech sub-data of each time period.
[0011] Optionally, in the first text, marking the text content corresponding to each time period with a color corresponding to the voice volume may include:
[0012] converting the speech data into a second text through speech recognition;
[0013] aligning the second text with the first text to align the first text with the voice data;
[0014] Calculating the voice volume of the voice data corresponding to different positions in the first text according to the alignment result of the first text and the voice data;
[0015] Different positions are marked with colors corresponding to the voice volume.
[0016] Optionally, aligning the second text with the first text to align the first text with the voice data may include:
[0017] Based on natural language processing technology, the first text is segmented into multiple words;
[0018] Determine the text content corresponding to each word segment in the first text in the second text, and determine the start and end times corresponding to the corresponding text content in the voice data.
[0019] The embodiment of the present invention further provides a speech visualization device, which is used to increase the sensory dimension in the reading process by visualizing the volume of reading aloud and improve the user experience. The device includes:
[0020] An acquisition unit, used to acquire the collected voice data of reading aloud the first text;
[0021] A calculation unit, used for calculating the voice volume of the voice data in each time period;
[0022] The marking unit is used to mark the text content corresponding to each time period in the first text with a color corresponding to the voice volume.
[0023] Optionally, the calculation unit may include:
[0024] A first division subunit, used to divide the voice data into voice sub-data of a plurality of time periods according to a preset time interval;
[0025] The first calculation subunit is used to calculate the average volume of the speech in the speech sub-data of each time period.
[0026] Optionally, the marking unit may include:
[0027] A conversion subunit, configured to convert the speech data into a second text through speech recognition;
[0028] an alignment subunit, used for aligning the second text with the first text, so as to align the first text with the voice data;
[0029] A second calculation subunit, configured to calculate the voice volume of the voice data corresponding to different positions in the first text according to the alignment result of the first text and the voice data;
[0030] The marking subunit is used to mark different positions with colors corresponding to the voice volume.
[0031] Optionally, the alignment subunit may include:
[0032] A second segmentation subunit is used to segment the first text into a plurality of segment words based on a natural language processing technology;
[0033] The determination subunit is used to determine the text content corresponding to each word segment in the first text in the second text, and determine the start and end times of the corresponding text content in the voice data.
[0034] An embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned speech visualization method when executing the computer program.
[0035] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned speech visualization method is implemented.
[0036] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the above-mentioned speech visualization method is implemented.
[0037] In an embodiment of the present invention, by acquiring the collected voice data of reading aloud the first text, the voice volume of the voice data in each time period is calculated, and in the first text, the text content corresponding to each time period is marked with a color corresponding to the voice volume. Compared with the technical solution in the prior art, the voice volume of reading aloud is visualized by marking the voice volume of reading aloud with color, thereby increasing the sensory dimension in the reading process and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0039] Figure 1 A flow chart of a speech visualization method provided in an embodiment of the present invention Figure 1 ;
[0040] Figure 2 A flow chart of a speech visualization method provided in an embodiment of the present invention Figure 2 ;
[0041] Figure 3 A flow chart of a speech visualization method provided in an embodiment of the present invention Figure 3 ;
[0042] Figure 4 A flow chart of a speech visualization method provided in an embodiment of the present invention Figure 4 ;
[0043] Figure 5 The figure is a schematic diagram of the structure of a speech visualization device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0044] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0045] The present invention provides a method for visualizing speech. Figure 1 The figure shows a flow diagram of a speech visualization method provided by an embodiment of the present invention. Figure 1 .like Figure 1 As shown, the method may include the following steps:
[0046] Step 101: Acquire the collected voice data of reading aloud the first text.
[0047] The speech visualization method provided by the embodiment of the present invention can be performed by an electronic device. The speech data of reading aloud the first text can be collected by a sound collection module. Optionally, the sound collection module can be integrated into the electronic device. For example, the speech data of the user reading aloud the first text can be collected by a microphone of a mobile phone. Optionally, the first text can be displayed on a display module. For example, the first text can be displayed on the screen of the mobile phone, and the speech data can be collected by a microphone at the same time.
[0048] Step 102, calculating the voice volume of the voice data in each time period.
[0049] After the voice data is acquired, the voice data may be divided into a plurality of time periods based on a preset time interval, and the voice volume of each time period may be calculated.
[0050] Specifically, step 102 of calculating the voice volume of the voice data in each time period may include: Figure 2 The following steps are shown:
[0051] Step 201, dividing the voice data into voice sub-data of multiple time periods according to a preset time interval;
[0052] Step 202: Calculate the average volume of the speech in the speech sub-data of each time period.
[0053] Step 103: In the first text, mark the text content corresponding to each time period with a color corresponding to the voice volume.
[0054] After obtaining the voice volume in each time period, different text contents in the first text may be marked with colors, the colors corresponding to the voice volume when the text content is read aloud, and different volumes correspond to different colors.
[0055] For example, the relationship between volume and color can be predefined, and the first text can be divided into N parts according to fixed time intervals. After collecting and calculating the volume of the reading sound (voice) in each time period, the corresponding color is queried according to the volume. Then, the corresponding text content can be determined according to the reading time of each time period, and the background color corresponding to the volume can be set at the background position of the corresponding text content.
[0056] In another optional implementation, in step 103, in the first text, the text content mark corresponding to each time period and the color corresponding to the voice volume may include: Figure 3 The following steps are shown:
[0057] Step 301: converting speech data into second text through speech recognition.
[0058] The voice data is converted into text which can be recognized by speech recognition technology.
[0059] Step 302: align the second text with the first text to align the first text with the voice data.
[0060] Due to the limitations of the reader's accent and speech recognition technology, the second text obtained by recognizing the speech data may be different from the first text. In this case, the first text and the second text can be aligned based on the same part. Since the second text is obtained by converting the speech data through speech recognition, it is aligned in time. In this way, after aligning the first text and the second text, the first text and the speech data can be aligned.
[0061] Optionally, when aligning the second text with the first text to align the first text with the voice data, the first text can be divided into multiple words based on natural language processing technology, and then the text content corresponding to each word in the first text in the second text is determined, and the start and end times of the corresponding text content in the voice data are determined.
[0062] Step 303: Calculate the voice volume of the voice data corresponding to different positions in the first text according to the alignment result of the first text and the voice data.
[0063] Different positions can be distinguished based on the same time intervals divided from the voice data, or can be divided based on text. For example, the volume of the voice data corresponding to each unit can be calculated based on characters or word segments.
[0064] For example, the volume of each word segmented when read aloud may be calculated based on the word segmentation result of the first text. Specifically, the start and end times corresponding to each word segmented in the voice data may be determined, thereby determining the voice volume of each word segmented when read aloud by the user.
[0065] Step 304: Mark different positions with colors corresponding to the voice volume.
[0066] After finding the color corresponding to the voice volume, you can mark the corresponding color at different positions.
[0067] The speech visualization method provided by the embodiment of the present invention can be implemented by a speech visualization device. The speech visualization device can be functionally divided into a sound acquisition module, a volume conversion module, a text positioning module and a text background color adjustment module. Among them, the sound acquisition module can be used to acquire the voice of the reader and calculate the average volume in each time interval. The volume conversion color module can be used to calculate the corresponding color according to the volume of each time interval and the preset relationship between volume and color. The text positioning module can be used to calculate the position of the text according to the reading time and time interval setting. The text background color adjustment module can be used to dynamically set the background color to the color to be converted according to the located text.
[0068] The process of implementing the speech visualization method through the above functional modules can be as follows: Figure 4 As shown, the following is explained:
[0069] The sound acquisition module is used to obtain the reader's voice and convert it into a sound file. The sound file is then intercepted with a time interval of TI = 0.2 seconds as the unit. The volume S(T) of the three time points of start time TS, middle time TM, and end time TE in each time interval is taken, and the average volume in the time interval is calculated:
[0070] S(avg)=(S(TS)+S(TM)+S(TE)) / 3.
[0071] Through the volume conversion module, the color value corresponding to each time interval can be calculated based on the average volume S(avg) and the preset volume-color mapping relationship tansferColor(S):
[0072] Color i =transferColor(S(avg) i ), i=1,..., W, W=T / TI.
[0073] Through the text positioning module, the background color at the i-th position can be calculated according to the current reading time (seconds) T and the time interval TI.
[0074] The text background color adjustment module can set the background color of position i to Color based on the color calculated by the volume conversion module and the text position calculated by the text positioning module. i .
[0075] The embodiments of the present invention can increase a source of sound perception by identifying volume changes and adjusting the background color visualization, enhance the sound sensitivity through the visual perception of color changes, realize the visualization of the overall volume change of reading aloud, and effectively improve the reading aloud experience.
[0076] In an embodiment of the present invention, by acquiring the collected voice data of reading aloud the first text, the voice volume of the voice data in each time period is calculated, and in the first text, the text content corresponding to each time period is marked with a color corresponding to the voice volume. Compared with the technical solution in the prior art, the voice volume of reading aloud is visualized by marking the voice volume of reading aloud with color, thereby increasing the sensory dimension in the reading process and improving the user experience.
[0077] The present invention also provides a speech visualization device, as described in the following embodiments. Since the problem and principle solved by the device are similar to the speech visualization method provided in the present invention, the implementation of the device can refer to the implementation of the speech visualization method, and the repeated parts will not be repeated.
[0078] like Figure 5 As shown, a speech visualization device provided by an embodiment of the present invention may include an acquisition unit 10 , a calculation unit 20 and a marking unit 30 .
[0079] The acquisition unit 10 is used to acquire the collected voice data of reading aloud the first text;
[0080] The calculation unit 20 is used to calculate the voice volume of the voice data in each time period;
[0081] The marking unit 30 is used to mark the text content corresponding to each time period in the first text with a color corresponding to the voice volume.
[0082] Optionally, the calculation unit 20 may include:
[0083] A first division subunit, used to divide the voice data into voice sub-data of a plurality of time periods according to a preset time interval;
[0084] The first calculation subunit is used to calculate the average volume of the speech in the speech sub-data of each time period.
[0085] Optionally, the marking unit 30 may include:
[0086] A conversion subunit, configured to convert the speech data into a second text through speech recognition;
[0087] an alignment subunit, used for aligning the second text with the first text, so as to align the first text with the voice data;
[0088] A second calculation subunit, configured to calculate the voice volume of the voice data corresponding to different positions in the first text according to the alignment result of the first text and the voice data;
[0089] The marking subunit is used to mark different positions with colors corresponding to the voice volume.
[0090] Optionally, the alignment subunit may include:
[0091] A second segmentation subunit is used to segment the first text into a plurality of segment words based on a natural language processing technology;
[0092] The determination subunit is used to determine the text content corresponding to each word segment in the first text in the second text, and determine the start and end times of the corresponding text content in the voice data.
[0093] In an embodiment of the present invention, by acquiring the collected voice data of reading aloud the first text, the voice volume of the voice data in each time period is calculated, and in the first text, the text content corresponding to each time period is marked with a color corresponding to the voice volume. Compared with the technical solution in the prior art, the voice volume of reading aloud is visualized by marking the voice volume of reading aloud with color, thereby increasing the sensory dimension in the reading process and improving the user experience.
[0094] An embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned speech visualization method when executing the computer program.
[0095] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned speech visualization method is implemented.
[0096] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the above-mentioned speech visualization method is implemented.
[0097] In an embodiment of the present invention, by acquiring the collected voice data of reading aloud the first text, the voice volume of the voice data in each time period is calculated, and in the first text, the text content corresponding to each time period is marked with a color corresponding to the voice volume. Compared with the technical solution in the prior art, the voice volume of reading aloud is visualized by marking the voice volume of reading aloud with color, thereby increasing the sensory dimension in the reading process and improving the user experience.
[0098] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations. Various types of data such as personal identity data, operation data, behavioral data, etc. related to individuals, customers, and groups obtained by this application have been authorized.
[0099] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0100] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0101] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0102] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0103] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for visualizing speech in the process of reading aloud an article document, It is characterized in that include: Acquiring the collected voice data of reading aloud the first text; wherein the first text is displayed on the screen of the mobile phone, and the voice data is collected through the microphone of the mobile phone at the same time; Calculating the voice volume of the voice data in each time period; In the first text, marking the text content corresponding to each time period with a color corresponding to the voice volume; The calculating the voice volume of the voice data in each time period includes: Dividing the voice data into voice sub-data of a plurality of time periods according to a preset time interval; Calculate the average volume of the speech in the speech sub-data of each time period; The step of marking the text content corresponding to each time period with a color corresponding to the voice volume in the first text includes: Converting the speech data into a second text through speech recognition; aligning the second text with the first text to align the first text with the voice data; Calculating the voice volume of the voice data corresponding to different positions in the first text according to the alignment result of the first text and the voice data; Different positions are marked with colors corresponding to the voice volume.
2. The method according to claim 1, It is characterized in that The aligning the second text with the first text to align the first text with the voice data includes: Based on natural language processing technology, the first text is divided into a plurality of segmented words; Determine the text content corresponding to each word segment in the first text in the second text, and determine the start and end times corresponding to the corresponding text content in the voice data.
3. A device for visualizing speech in the process of reading aloud an article document, It is characterized in that include: An acquisition unit, used to acquire the collected voice data of reading aloud the first text; wherein the first text is displayed on the screen of the mobile phone, and the voice data is collected through the microphone of the mobile phone at the same time; A calculation unit, used for calculating the voice volume of the voice data in each time period; a marking unit, configured to mark, in the first text, text content corresponding to each time period with a color corresponding to the voice volume; Wherein, the computing unit comprises: A first division subunit, configured to divide the voice data into voice sub-data of a plurality of time periods according to a preset time interval; A first calculation subunit, used to calculate the average volume of the voice in the voice sub-data of each time period; The marking unit comprises: A conversion subunit, configured to convert the speech data into a second text through speech recognition; an alignment subunit, configured to align the second text with the first text, so as to align the first text with the voice data; A second calculation subunit, configured to calculate the voice volume of the voice data corresponding to different positions in the first text according to the alignment result of the first text and the voice data; The marking subunit is used to mark different positions with colors corresponding to the voice volume.
4. The device as claimed in claim 3, It is characterized in that The alignment subunit comprises: A second segmentation subunit is used to segment the first text into a plurality of segment words based on natural language processing technology; The determination subunit is used to determine the text content corresponding to each word segment in the first text in the second text, and determine the start and end times corresponding to the corresponding text content in the voice data.
5. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 2 is implemented.
6. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 2 is implemented.
7. A computer program product, It is characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 2 is implemented.
