Multimedia file generation method, device, equipment and storage medium
By acquiring and assembling course content data, including text, pictures and audio data, a complete bank multimedia training file is generated, which solves the problem of incomplete files in the existing technology and improves the integrity and security of the files.
Patent Information
- Application Number
- CN202110302828.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-22
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-03-22
AI Technical Summary
When generating bank multimedia training files, existing technologies usually ignore audio content or synthesize long audio, resulting in incomplete files with missing audio, pictures, and text information.
By obtaining the course content data, including text, pictures and audio data, perform audio text conversion, assemble the pictures, audio text and text data according to the time sequence and preset assembly rules, and add security identification to the file to generate a complete bank Multimedia training documents.
Improved the integrity of multimedia training files, ensuring the integrity of audio, picture and text information, and preventing file leakage.
Smart Images

Figure CN113065007B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a multimedia file generation method, device, equipment and storage medium. Background Art
[0002] With the development of technology, teaching is no longer limited to offline methods. Many educational companies or enterprises will produce online teaching courses for teaching, but many learners do not have time to attend online classes. Therefore, some courseware producers organize the teaching courses into multimedia teaching files that only need to be watched but not listened to, that is, teaching documents, so that learners can learn quickly and clearly. For example, in bank training, the training courseware can be made into bank multimedia training files for learners to learn.
[0003] In the prior art, the method of generating multimedia files (bank multimedia training files) is usually to splice the text and pictures in the course from top to bottom into a course document, ignoring the audio content, or simply synthesize all the audio in the course into a long audio, ignoring the text and picture content. Both splicing methods will result in incomplete multimedia files (bank multimedia training files). Summary of the invention
[0004] The present invention provides a multimedia file generation method, device, equipment and storage medium, which are used to solve the problem of missing multimedia training audio or missing pictures and texts when generating bank multimedia training files, and improve the integrity of generated bank multimedia training files.
[0005] The first aspect of the present invention provides a multimedia file generation method, comprising: obtaining course content data, the course content data including course text data, course image data and course audio data; converting the course audio data into text to generate audio text data; assembling the course image data, the audio text data and / or the course text data according to time sequence and preset assembly rules to generate an assembled training file; adding a security mark to the assembled training file to generate a bank multimedia training file.
[0006] Optionally, in a first implementation method of the first aspect of the present invention, converting the course audio data into text to generate audio text data includes: performing endpoint detection on the course audio data to generate multiple course audio segments; and generating audio text data based on the multiple course audio segments.
[0007] Optionally, in a second implementation method of the first aspect of the present invention, generating audio text data based on the multiple course audio clips includes: extracting acoustic features corresponding to each course audio clip to generate multiple acoustic feature groups; performing model training on the multiple acoustic feature groups to obtain a text model; inputting the multiple course voice clips into the text model respectively, and generating audio text data in combination with a preset dictionary.
[0008] Optionally, in a third implementation of the first aspect of the present invention, the course image data, the audio text data and / or the course text data are assembled according to the time sequence and preset assembly rules to generate an assembled training file, including: reading the width data and height data of the course image data; judging whether the width data is greater than or equal to a pixel threshold, generating a judgment result, and assembling the course image data, the audio text data and / or the course text data according to the time sequence and the assembly rules corresponding to the judgment result to generate an initial assembled training file; adjusting the initial assembled training file to generate an assembled training file.
[0009] Optionally, in a fourth implementation manner of the first aspect of the present invention, the judgment of whether the width data is greater than or equal to a pixel threshold generates a judgment result, and assembles the course image data, the audio text data and / or the course text data in time sequence according to an assembly rule corresponding to the judgment result, to generate an initially assembled training file, comprising: when the judgment result is greater than or equal to the pixel threshold, writing the course image data into a first writing area of a preset initial page in time sequence, and writing the audio text data and / or the course text data into a second writing area of the initial page, to generate an initially assembled training file, wherein the first writing area and the second writing area are located in different horizontal areas of the initial page; when the judgment result is less than the pixel threshold, calculating a text threshold based on the height data and the width data; writing the course image data into one side of the first writing area according to the text threshold, and writing the audio text data and / or the course text data into the other side of the first writing area and / or the second writing area, to generate an initially assembled training file, wherein the first writing area and the second writing area are located in different horizontal areas of the preset initial page.
[0010] Optionally, in a fifth implementation of the first aspect of the present invention, the adjusting the initial assembled training file to generate the assembled training file includes: reading the width information of the initial assembled course picture from the initial assembled training file; determining whether the width information of the initial assembled picture is greater than an adaptive width threshold; if the width information of the initial assembled picture is greater than the adaptive width threshold, scaling down the initial assembled course picture proportionally to generate the assembled training file.
[0011] Optionally, in a sixth implementation method of the first aspect of the present invention, the adding of a security identifier to the assembled training file to generate a bank multimedia training file includes: obtaining an identifier adding instruction, and parsing the identifier adding instruction to generate at least a security identifier, a security identifier starting coordinate, a number of security identifier rows, and a number of security identifier columns; adding the security identifier to the assembled training file based on the security identifier starting coordinate, the number of security identifier rows, and the number of security identifier columns to generate a bank multimedia training file.
[0012] The second aspect of the present invention provides a multimedia file generation device, including: an acquisition module, used to acquire course content data, the course content data including course text data, course image data and course audio data; a conversion module, used to convert the course audio data into text to generate audio text data; an assembly module, used to assemble the course image data, the audio text data and / or the course text data according to time sequence and preset assembly rules to generate an assembled training file; an identification adding module, used to add a security identification to the assembled training file to generate a bank multimedia training file.
[0013] Optionally, in a first implementation of the second aspect of the present invention, the conversion module includes: a detection unit, used to perform endpoint detection on the course audio data to generate multiple course audio segments; and a text data generation unit, used to generate audio text data based on the multiple course audio segments.
[0014] Optionally, in a second implementation method of the second aspect of the present invention, the text data generation unit can also be specifically used to: extract the acoustic features corresponding to each course audio segment to generate multiple acoustic feature groups; perform model training on the multiple acoustic feature groups to obtain a text model; input the multiple course voice segments into the text model respectively, and generate audio text data in combination with a preset dictionary.
[0015] Optionally, in a third implementation method of the second aspect of the present invention, the assembly module includes: a reading unit, used to read the width data and height data of the course image data; an assembling unit, used to determine whether the width data is greater than or equal to a pixel threshold, generate a judgment result, and assemble the course image data, the audio text data and / or the course text data in time sequence according to the assembly rules corresponding to the judgment result to generate an initially assembled training file; an adjustment unit, used to adjust the initially assembled training file to generate an assembled training file.
[0016] Optionally, in a fourth implementation manner of the second aspect of the present invention, the assembly unit may also be specifically used for: when the judgment result is greater than or equal to a pixel threshold, writing the course image data into a first writing area of a preset initial page in time sequence, and writing the audio text data and / or the course text data into a second writing area of the initial page, to generate an initially assembled training file, wherein the first writing area and the second writing area are located in different horizontal areas of the initial page; when the judgment result is less than a pixel threshold, calculating a text threshold based on the height data and the width data; writing the course image data into one side of the first writing area according to the text threshold, and writing the audio text data and / or the course text data into the other side of the first writing area and / or the second writing area, to generate an initially assembled training file, wherein the first writing area and the second writing area are located in different horizontal areas of the preset initial page.
[0017] Optionally, in the fifth implementation method of the second aspect of the present invention, the adjustment unit can also be specifically used to: read the width information of the initially assembled course picture from the initially assembled training file; determine whether the width information of the initially assembled picture is greater than the adaptive width threshold; if the width information of the initially assembled picture is greater than the adaptive width threshold, then proportionally reduce the initially assembled course picture to generate an assembled training file.
[0018] Optionally, in the sixth implementation method of the second aspect of the present invention, the identification adding module can also be specifically used to: obtain the identification adding instruction, and parse the identification adding instruction to at least generate a security identification, a security identification starting coordinate, the number of security identification rows and the number of security identification columns; based on the security identification starting coordinate, the number of security identification rows and the number of security identification columns, add the security identification to the assembled training file to generate a bank multimedia training file.
[0019] A third aspect of the present invention provides a multimedia file generation device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the multimedia file generation device executes the above-mentioned multimedia file generation method.
[0020] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned multimedia file generation method.
[0021] In the technical solution provided by the present invention, course content data is obtained, and the course content data includes course text data, course image data and course audio data; the course audio data is converted into text to generate audio text data; the course image data, the audio text data and / or the course text data are assembled according to the time sequence and the preset assembly rules to generate an assembled training file; a security mark is added to the assembled training file to generate a bank multimedia training file. In the embodiment of the present invention, the course audio data is converted into audio text data, and the course image data, audio text data and / or course text data are spliced into a bank multimedia training file according to the time sequence and the preset assembly rules, which solves the problem of missing multimedia training audio or missing images and text when generating bank multimedia training files, and improves the integrity of the generated bank multimedia training files. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic diagram of an embodiment of a method for generating a multimedia file in an embodiment of the present invention;
[0023] Figure 2 A schematic diagram of another embodiment of the method for generating a multimedia file in an embodiment of the present invention;
[0024] Figure 3 A schematic diagram of an embodiment of a multimedia file generating device in an embodiment of the present invention;
[0025] Figure 4 A schematic diagram of another embodiment of a multimedia file generating device according to an embodiment of the present invention;
[0026] Figure 5 The figure is a schematic diagram of an embodiment of a multimedia file generating device in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The embodiments of the present invention provide a multimedia file generation method, apparatus, device and storage medium, which are used to solve the problem of missing multimedia training audio or missing pictures and text when generating bank multimedia training files, and improve the integrity of generated bank multimedia training files.
[0028] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , an embodiment of the method for generating a multimedia file in an embodiment of the present invention includes:
[0030] 101. Obtain course content data, which includes course text data, course image data, and course audio data;
[0031] The server obtains course content data including course text data, course image data and course audio data. It should be emphasized that in order to further ensure the privacy and security of the above course content data, the above course content data can also be stored in a blockchain node.
[0032] In order to promote product sales, many companies will launch some sales courses for sales staff, investment consultants and product specialists, so that they can learn products, strategies and product configuration, thereby improving the sales ability of employees. For example, banks will develop some sales courses for employees to learn. Such courses are usually one-to-many courses, and support both live broadcast and on-demand playback. The course content includes text, pictures and audio. In order to allow learners to quickly browse the complete course content after class, the server can assemble the course content into a document. Before assembling the document, the server first obtains the course content data including course text data, course picture data and course audio data, and then assembles the course content data into a document based on the course text data, course picture data and course audio data, where the course audio data is the audio data emitted by the lecturer.
[0033] It should be noted that the course text data can be one section of course text data or multiple sections of course text data, the course image data can be one section of course image data or multiple sections of course image data, and the course audio data can be one section of course audio data or multiple sections of course audio data. The course content data is presented according to the play instruction, one play instruction corresponds to one section of course text data, and one play instruction corresponds to one course image data, so the course text data includes a text timestamp, and the course image data includes an image timestamp.
[0034] It is understandable that the execution subject of the present invention may be a multimedia file generating device, or a terminal or a server, which is not limited here. The embodiment of the present invention is described by taking a server as the execution subject as an example.
[0035] 102. Convert the course audio data into text to generate audio text data;
[0036] After acquiring the course content data, the server converts the course audio data therein into audio text data.
[0037] It should be noted that the course audio data includes an audio timestamp, which is the time when the lecturer makes a sound. The audio timestamp, text timestamp and picture timestamp are all timestamps generated based on the same standard. For example, if the duration of the course content data is 30 minutes, 30 minutes is used as the standard to generate text timestamps, picture timestamps and audio timestamps. After the course audio data is converted into text, the audio text data continues to use the audio timestamp. The audio text data can be either a piece of text data or multiple pieces of text data. Since the ultimate goal is to generate an assembled document, the server must first convert the course audio data in audio format and convert it into audio text data in text format.
[0038] 103. Assembling the course image data, the audio text data and / or the course text data according to the time sequence and the preset assembly rules to generate an assembled training file;
[0039] The server assembles the course image data, audio text data and / or course text data together according to the time sequence and preset assembly rules to generate an assembled training file.
[0040] Since the course text data includes a text timestamp, the audio text data includes an audio timestamp, and the course image data includes an image timestamp, the server only needs to assemble the course text data, audio text data, and / or course image data according to the time sequence of these timestamps and the preset assembly rules to generate an assembled training file. For example, the text timestamp of course text data A1 is 1'30", the audio timestamp of audio text data B1 is 1'32", the image timestamp of course image data C1 is 1'50", and the audio timestamp of audio text data B2 is 1'52". The server then assembles the course text data A1, audio text data B1, course image data C1, and audio text data B2 according to the time sequence of these timestamps and the preset assembly rules to generate an assembled training file.
[0041] 104. Add security labels to the assembled training files to generate multimedia training files for banks.
[0042] After generating the assembled training file, the server adds a security mark for preventing the file from being leaked to the assembled training file to generate a bank multimedia training file.
[0043] Since bank multimedia training files may involve company strategies, company interests, etc., the server must add security tags when generating bank multimedia training files to prevent users from privately disseminating bank multimedia training files through screenshots, photos, and videos.
[0044] In an embodiment of the present invention, course audio data is converted into audio text data, and course image data, audio text data and / or course text data are spliced into a bank multimedia training file according to time sequence and preset assembly rules, thereby solving the problem of missing multimedia training audio or missing images and text when generating bank multimedia training files, and improving the integrity of generated bank multimedia training files.
[0045] See also Figure 2 Another embodiment of the method for generating a multimedia file in the embodiment of the present invention includes:
[0046] 201. Obtain course content data, where the course content data includes course text data, course image data, and course audio data;
[0047] The server obtains course content data including course text data, course image data and course audio data. It should be emphasized that in order to further ensure the privacy and security of the above course content data, the above course content data can also be stored in a blockchain node.
[0048] In order to promote product sales, many companies will launch some sales courses for sales staff, investment consultants and product specialists, so that they can learn products, strategies and product configuration, thereby improving the sales ability of employees. For example, banks will develop some sales courses for employees to learn. Such courses are usually one-to-many courses, and support both live broadcast and on-demand playback. The course content includes text, pictures and audio. In order to allow learners to quickly browse the complete course content after class, the server can assemble the course content into a document. Before assembling the document, the server first obtains the course content data including course text data, course picture data and course audio data, and then assembles the course content data into a document based on the course text data, course picture data and course audio data, where the course audio data is the audio data emitted by the lecturer.
[0049] It should be noted that the course text data can be one section of course text data or multiple sections of course text data, the course image data can be one section of course image data or multiple sections of course image data, and the course audio data can be one section of course audio data or multiple sections of course audio data. The course content data is presented according to the play instruction, one play instruction corresponds to one section of course text data, and one play instruction corresponds to one course image data, so the course text data includes a text timestamp, and the course image data includes an image timestamp.
[0050] 202. Convert the course audio data into text to generate audio text data;
[0051] After acquiring the course content data, the server converts the course audio data therein into audio text data.
[0052] It should be noted that the course audio data includes an audio timestamp, which is the time when the lecturer makes a sound. The audio timestamp, text timestamp and picture timestamp are all timestamps generated based on the same standard. For example, if the duration of the course content data is 30 minutes, 30 minutes is used as the standard to generate text timestamps, picture timestamps and audio timestamps. After the course audio data is converted into text, the audio text data continues to use the audio timestamp. The audio text data can be either a piece of text data or multiple pieces of text data. Since the ultimate goal is to generate an assembled document, the server must first convert the course audio data in audio format and convert it into audio text data in text format.
[0053] Specifically, the server first performs endpoint detection on the course audio data to generate multiple course audio clips; then the server generates audio text data based on the multiple course audio clips.
[0054] Endpoint detection is also called voice activity detection (VAD). The purpose of endpoint detection is to distinguish between speech areas and non-speech areas. It can be understood that endpoint detection is to accurately locate the start and end points of speech from noisy speech. In this embodiment, it can be understood as removing the silent and noisy parts in the course audio data to find the truly effective content of the audio, that is, multiple course audio clips.
[0055] The server performs endpoint detection on the course audio data and removes the silent and noisy parts in the course audio data. When performing endpoint detection, the course audio data can be input into a text model. Based on the basic decoding method, the server uses global information to distinguish speech segments (course audio clips) and non-speech segments (silent segments and noise segments), extract non-audio segments, and retain audio segments, thereby obtaining multiple course audio clips.
[0056] The server generates audio text data based on multiple course audio clips, specifically including:
[0057] The server first extracts the acoustic features corresponding to each course audio clip and generates multiple acoustic feature groups; then the server performs model training on the multiple acoustic feature groups to obtain a text model; finally, the server inputs multiple course voice clips into the text model respectively, and combines them with a preset dictionary to generate audio text data.
[0058] 203. Read the width data and height data of the course image data;
[0059] The server reads the width data and height data of the course image data, and then the server assembles the course image data, audio text data and / or course text data according to the width data and height data of the course image.
[0060] 204. Determine whether the width data is greater than or equal to the pixel threshold, generate a determination result, and assemble the course image data, the audio text data, and / or the course text data in a time sequence according to an assembly rule corresponding to the determination result to generate an initially assembled training file;
[0061] The server determines whether the width data is greater than or equal to the pixel threshold, thereby generating a judgment result, which may be greater than or equal to the pixel threshold, or may be less than the pixel threshold. In this embodiment, the pixel threshold is 500px, and the course image data, audio text data and / or course text data are assembled according to the comparison result in accordance with the time sequence and assembly rules to generate an initially assembled training file.
[0062] Specifically, when the judgment result is greater than or equal to the pixel threshold, the server writes the course image data into the first writing area of the preset initial page in time sequence, and writes the audio text data and / or course text data into the second writing area of the initial page, to generate an initially assembled training file, in which the first writing area and the second writing area are located in different horizontal areas of the initial page; when the judgment result is less than the pixel threshold, the server calculates the text threshold based on the height data and the width data; then the server writes the course image data into one side of the first writing area according to the text threshold, and writes the audio text data and / or course text data into the other side of the first writing area and / or the second writing area, to generate an initially assembled training file, in which the first writing area and the second writing area are located in different horizontal areas of the preset initial page.
[0063] When the judgment result is greater than or equal to the pixel threshold, the server directly writes the course image data separately into the first writing area of the preset initial page in time sequence, and writes the audio text data and / or course text data into the second writing area that is located in a different horizontal area from the first writing area, thereby generating the training file after initial assembly; in this embodiment, the first writing area is a separate horizontal area, and the second writing area is located in a different horizontal area from the first writing area. When the judgment result is less than the pixel threshold, the server calculates the text threshold, and the formula for calculating the text threshold is:
[0064]
[0065] Wherein, B is the text threshold, W is the width data, and H is the height data. Then the server determines whether the course text data / audio text data behind the course image data is a section of course text data / a section of audio text data. When the course text data / audio text data behind the course image data is a section of course text data / a section of audio text data, the server reads the length of the section of course text data / audio text data, and compares the length of the section of course text data / audio text data with the text threshold. If the length of the section of course text data / audio text data is less than or equal to the text threshold, the course image data is written to one side of the first writing area in time sequence, and the course text data / audio text data is written to the other side of the first writing area, thereby generating the training file after initial assembly; if the length of the section of course text data / audio text data is greater than the text threshold, the server writes the course image data to any position of the first writing area in time sequence, and writes the course text data / audio text data to the second writing area, thereby generating the training file after initial assembly. When the course text data / audio text data after the course image data is multiple segments of course text data / multiple segments of audio text data, in this embodiment, the multiple segments include two segments, and the server compares the length of the Nth segment of course text data / audio text data and the length of the N+1th segment of course text data / audio text data with the text threshold respectively. If the length of the Nth segment of course text data / audio text data is less than or equal to the text threshold, and the length of the N+1th segment of course text data / audio text data is less than or equal to the text threshold, the server writes the course image data to one side of the first writing area in time sequence, and writes the Nth segment of course text data / audio text data and the N+1th segment of course text data / audio text data to the other side of the first writing area, thereby generating an initially assembled training file; if the length of the Nth segment of course text data / audio text data is less than or equal to the text threshold, the server writes the course image data to one side of the first writing area in time sequence, and writes the Nth segment of course text data / audio text data and the N+1th segment of course text data / audio text data to the other side of the first writing area, thereby generating an initially assembled training file; When the length is less than or equal to the text threshold, and the length of the N+1th course text data / audio text data is greater than the text threshold, the server writes the course image data to one side of the first writing area in time sequence, writes the Nth course text data / audio text data to the other side of the first writing area, and writes the N+1th course text data / audio text data to the second writing area, thereby generating an initially assembled training file; if the length of the Nth course text data / audio text data and the length of the N+1th course text data / audio text data are both greater than the text threshold, the server writes the course image data to any position in the first writing area in time sequence, and writes the Nth course text data / audio text data and the N+1th course text data / audio text data to the second writing area, thereby generating an initially assembled training file.
[0066] 205. Adjust the initial assembled training file to generate an assembled training file;
[0067] The server adjusts the initial assembled training file to obtain an assembled training file.
[0068] It should be noted that the training file after initial assembly can be a multi-page training file or a one-page training file. For ease of understanding, this embodiment is mainly described using a one-page training file after initial assembly, so the assembled training file is also one page. In other embodiments, the initial assembled training file and the assembled training file can be multi-page.
[0069] Specifically, the server first reads the width information of the initially assembled course image from the initially assembled training file; then the server determines whether the width information of the initially assembled image is greater than the adaptive width threshold; if the width information of the initially assembled image is greater than the adaptive width threshold, the server proportionally reduces the initially assembled course image to generate an assembled training file.
[0070] After generating the initial assembled training file, the server also needs to adjust the initial assembled training file to generate the assembled training file. The server mainly refers to the width information of the course picture after the initial assembly for adjustment. In this embodiment, the width information of the assembled course picture shall not exceed 750px (adaptive width threshold). When the width information of the course picture after the initial assembly exceeds 750px, the server automatically scales down the course picture after the initial assembly, and the width information of the scaled-down course picture shall not be less than the pixel threshold, i.e., 500px, thereby generating the assembled training file.
[0071] 206. Add security labels to the assembled training files to generate multimedia training files for banks.
[0072] After generating the assembled training file, the server adds a security mark for preventing the file from being leaked to the assembled training file to generate a bank multimedia training file.
[0073] Since bank multimedia training files may involve company strategies, company interests, etc., the server must add security tags when generating bank multimedia training files to prevent users from privately disseminating bank multimedia training files through screenshots, photos, and videos.
[0074] Specifically, the server obtains an identification adding instruction and parses the identification adding instruction to generate at least a security identification, a security identification starting coordinate, a number of security identification rows, and a number of security identification columns; then the server adds the security identification to the assembled training file based on the security identification starting coordinate, the number of security identification rows, and the number of security identification columns to generate a bank multimedia training file. The security identification is used to prevent the bank multimedia training file from being leaked.
[0075] The server parses the obtained identification adding instruction, and generates at least a security identification, a security identification starting coordinate, a security identification row number, and a security identification column number through the identification adding instruction. The security identification may be the ID of the user attending the course, the producer of the course content data, etc. Then, the server adds the security identification to the assembled training file based on the security identification starting coordinate, the security identification row number, and the security identification column number, thereby generating a bank multimedia training file that is prevented from being leaked.
[0076] It should be noted that, based on the add instruction, in addition to being able to parse and obtain the starting coordinates of the security mark, the number of rows of the security mark and the number of columns of the security mark, it is also possible to obtain the watermark x-axis interval, watermark y-axis interval, watermark font color, watermark transparency, watermark font size, watermark font, watermark width, watermark length and watermark tilt degree, etc. When the server parses the above information, it adds the security mark according to the above information, thereby generating a bank multimedia training file.
[0077] In an embodiment of the present invention, course audio data is converted into audio text data, and course image data, audio text data and / or course text data are spliced into a bank multimedia training file according to time sequence and preset assembly rules, thereby solving the problem of missing multimedia training audio or missing images and text when generating bank multimedia training files, and improving the integrity of generated bank multimedia training files.
[0078] The above describes the multimedia file generation method in the embodiment of the present invention. The following describes the multimedia file generation device in the embodiment of the present invention. Figure 3 In one embodiment of the multimedia file generating device of the present invention, the device comprises:
[0079] An acquisition module 301 is used to acquire course content data, wherein the course content data includes course text data, course image data and course audio data;
[0080] The conversion module 302 is used to convert the course audio data into text to generate audio text data;
[0081] An assembling module 303, for assembling the course image data, the audio text data and / or the course text data according to a time sequence and a preset assembly rule to generate an assembled training file;
[0082] The logo adding module 304 is used to add a safety logo to the assembled training file to generate a bank multimedia training file.
[0083] In an embodiment of the present invention, course audio data is converted into audio text data, and course image data, audio text data and / or course text data are spliced into a bank multimedia training file according to time sequence and preset assembly rules, thereby solving the problem of missing multimedia training audio or missing images and text when generating bank multimedia training files, and improving the integrity of generated bank multimedia training files.
[0084] See also Figure 4 Another embodiment of the multimedia file generating device in the embodiment of the present invention includes:
[0085] An acquisition module 301 is used to acquire course content data, wherein the course content data includes course text data, course image data and course audio data;
[0086] The conversion module 302 is used to convert the course audio data into text to generate audio text data;
[0087] An assembling module 303, for assembling the course image data, the audio text data and / or the course text data according to a time sequence and a preset assembly rule to generate an assembled training file;
[0088] The logo adding module 304 is used to add a safety logo to the assembled training file to generate a bank multimedia training file.
[0089] Optionally, the conversion module 302 includes:
[0090] The detection unit 3021 is used to perform endpoint detection on the course audio data to generate multiple course audio clips;
[0091] The text data generating unit 3022 is used to generate audio text data according to the multiple course audio segments.
[0092] Optionally, the text data generating unit 3022 may also be specifically used for:
[0093] Extract the acoustic features corresponding to each course audio clip and generate multiple acoustic feature groups;
[0094] Performing model training on the multiple acoustic feature groups to obtain a text model;
[0095] The plurality of course voice segments are input into the text model respectively, and combined with a preset dictionary, audio text data is generated.
[0096] Optionally, the assembly module 303 includes:
[0097] A reading unit 3031 is used to read the width data and height data of the course picture data;
[0098] An assembling unit 3032 is used to determine whether the width data is greater than or equal to a pixel threshold, generate a determination result, and assemble the course image data, the audio text data and / or the course text data in a time sequence according to an assembly rule corresponding to the determination result to generate an initially assembled training file;
[0099] The adjustment unit 3033 is used to adjust the initially assembled training file to generate an assembled training file.
[0100] Optionally, the assembly unit 3032 may also be specifically used for:
[0101] When the judgment result is greater than or equal to the pixel threshold, the course image data is written into a first writing area of a preset initial page in a time sequence, and the audio text data and / or course text data is written into a second writing area of the initial page to generate an initially assembled training file, wherein the first writing area and the second writing area are located in different horizontal areas of the initial page;
[0102] When the judgment result is less than the pixel threshold, calculating the text threshold based on the height data and the width data;
[0103] The course picture data is written into one side of the first writing area according to the text threshold, and the audio text data and / or the course text data is written into the other side of the first writing area and / or the second writing area to generate an initially assembled training file, wherein the first writing area and the second writing area are located in different horizontal areas of a preset initial page.
[0104] Optionally, the adjusting unit 3033 may also be specifically configured to:
[0105] Reading the width information of the initially assembled course pictures from the initially assembled training file;
[0106] Determine whether the width information of the image after the initial assembly is greater than an adaptive width threshold;
[0107] If the width information of the initially assembled image is greater than the adaptive width threshold, the initially assembled course image is scaled down proportionally to generate an assembled training file.
[0108] Optionally, the identification adding module 304 may also be specifically used for:
[0109] Obtaining a mark adding instruction, parsing the mark adding instruction, and generating at least a safety mark, a safety mark starting coordinate, a safety mark row number, and a safety mark column number;
[0110] The security logo is added to the assembled training file based on the starting coordinates of the security logo, the number of rows of the security logo and the number of columns of the security logo to generate a bank multimedia training file.
[0111] In an embodiment of the present invention, course audio data is converted into audio text data, and course image data, audio text data and / or course text data are spliced into a bank multimedia training file according to time sequence and preset assembly rules, thereby solving the problem of missing multimedia training audio or missing images and text when generating bank multimedia training files, and improving the integrity of generated bank multimedia training files.
[0112] above Figure 3 and Figure 4 The multimedia file generating apparatus in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The multimedia file generating device in the embodiment of the present invention is described in detail from the perspective of hardware processing.
[0113] Figure 5 1 is a schematic diagram of the structure of a multimedia file generating device provided by an embodiment of the present invention. The multimedia file generating device 500 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (for example, one or more processors) and a memory 520, and one or more storage media 530 (for example, one or more mass storage devices) storing application programs 533 or data 532. Among them, the memory 520 and the storage medium 530 may be temporary storage or permanent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the multimedia file generating device 500. Furthermore, the processor 510 may be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the multimedia file generating device 500.
[0114] The multimedia file generating device 500 may further include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input and output interfaces 560, and / or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 5 The structure of the multimedia file generating device shown does not constitute a limitation on the multimedia file generating device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0115] The present invention also provides a multimedia file generating device, the computer device includes a memory and a processor, the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the multimedia file generating method in the above-mentioned embodiments.
[0116] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the multimedia file generation method.
[0117] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0118] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0119] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0120] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating a multimedia file, characterized in that: The multimedia file generation method comprises: Acquire course content data, wherein the course content data includes course text data, course image data and course audio data; Convert the course audio data into text to generate audio text data; Assembling the course image data, the audio text data and / or the course text data according to the time sequence and the preset assembly rules to generate an assembled training file; adding a security mark to the assembled training file to generate a bank multimedia training file; The step of assembling the course image data, the audio text data and / or the course text data according to the time sequence and the preset assembly rules to generate the assembled training file includes: Read the width data and height data of the course image data; Determine whether the width data is greater than or equal to a pixel threshold, generate a determination result, and assemble the course image data, the audio text data and / or the course text data in a time sequence according to an assembly rule corresponding to the determination result to generate an initially assembled training file; Adjusting the initially assembled training file to generate an assembled training file; The determining whether the width data is greater than or equal to a pixel threshold, generating a determination result, and assembling the course image data, the audio text data and / or the course text data in a time sequence according to an assembly rule corresponding to the determination result, to generate an initially assembled training file includes: When the judgment result is greater than or equal to the pixel threshold, the course image data is written into a first writing area of a preset initial page in a time sequence, and the audio text data and / or course text data is written into a second writing area of the initial page to generate an initially assembled training file, wherein the first writing area and the second writing area are located in different horizontal areas of the initial page; When the judgment result is less than the pixel threshold, calculating the text threshold based on the height data and the width data; The course picture data is written into one side of the first writing area according to the text threshold, and the audio text data and / or the course text data is written into the other side of the first writing area and / or the second writing area to generate an initially assembled training file, wherein the first writing area and the second writing area are located in different horizontal areas of a preset initial page.
2. The method for generating a multimedia file according to claim 1, characterized in that: The converting the course audio data into text to generate audio text data comprises: Performing endpoint detection on the course audio data to generate multiple course audio clips; Audio text data is generated according to the multiple course audio clips.
3. The multimedia file generation method according to claim 2, characterized in that: Generating audio text data according to the plurality of course audio segments comprises: Extract the acoustic features corresponding to each course audio clip and generate multiple acoustic feature groups; Performing model training on the multiple acoustic feature groups to obtain a text model; The plurality of course voice segments are input into the text model respectively, and combined with a preset dictionary, audio text data is generated.
4. The multimedia file generation method according to claim 1, characterized in that: The adjusting the initially assembled training file to generate an assembled training file comprises: Reading the width information of the initially assembled course pictures from the initially assembled training file; Determine whether the width information of the image after the initial assembly is greater than an adaptive width threshold; If the width information of the initially assembled image is greater than the adaptive width threshold, the initially assembled course image is scaled down proportionally to generate an assembled training file.
5. The multimedia file generation method according to claim 1, characterized in that: Adding a security mark to the assembled training file to generate a bank multimedia training file includes: Obtaining a mark adding instruction, parsing the mark adding instruction, and generating at least a safety mark, a safety mark starting coordinate, a safety mark row number, and a safety mark column number; The security logo is added to the assembled training file based on the starting coordinates of the security logo, the number of rows of the security logo and the number of columns of the security logo to generate a bank multimedia training file.
6. A multimedia file generating device, characterized in that: The multimedia file generating device comprises: An acquisition module, used to acquire course content data, wherein the course content data includes course text data, course image data and course audio data; A conversion module, used for converting the course audio data into text to generate audio text data; An assembling module, for assembling the course image data, the audio text data and / or the course text data according to a time sequence and a preset assembly rule to generate an assembled training file; An identification adding module, used for adding a security identification to the assembled training file to generate a bank multimedia training file; The assembly module is also used to read the width data and height data of the course image data; determine whether the width data is greater than or equal to a pixel threshold, generate a determination result, and assemble the course image data, the audio text data and / or the course text data in a time sequence according to an assembly rule corresponding to the determination result to generate an initially assembled training file; adjust the initially assembled training file to generate an assembled training file; The assembly module is also used to, when the judgment result is greater than or equal to the pixel threshold, write the course image data into a first writing area of a preset initial page in time sequence, and write the audio text data and / or the course text data into a second writing area of the initial page, to generate an initially assembled training file, wherein the first writing area and the second writing area are located in different horizontal areas of the initial page; when the judgment result is less than the pixel threshold, calculate the text threshold based on the height data and the width data; write the course image data into one side of the first writing area according to the text threshold, and write the audio text data and / or the course text data into the other side of the first writing area and / or the second writing area, to generate an initially assembled training file, wherein the first writing area and the second writing area are located in different horizontal areas of the preset initial page.
7. A multimedia file generating device, characterized in that: The multimedia file generating device comprises: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instruction in the memory so that the multimedia file generating device executes the multimedia file generating method according to any one of claims 1 to 5.
8. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the multimedia file generation method as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Recorded broadcast interaction course generation method and device, storage medium and terminal
CN111711834A
