Method and device for generating audio files of video file

文档序号:1567736 发布日期:2020-01-24 浏览:25次 中文

阅读说明:本技术 一种视频文案配音稿的生成方法及装置 (Method and device for generating audio files of video file ) 是由 李天驰 孙悦 郑心然 吕城宇 李海帆 刘绍锴 张发耀 于 2019-10-23 设计创作,主要内容包括:本发明公开了一种视频文案配音稿的生成方法及装置,该生成方法包括:获取目标视频文案,所述目标视频文案由教研人员根据指定格式编写完成;提取出所述目标视频文案的全部原始内容及所述原始内容对应的格式,并对全部的所述原始内容进行筛选及匹配;将进行筛选及匹配后剩余的所述原始内容生成供配音人员进行配音用的目标配音稿。本发明解决了现有技术中的以下问题:配音人员整理配音稿的过程非常耗时耗力,并且因为配音角色的不同,需要导出多份整理好的配音稿。(The invention discloses a method and a device for generating a video file dubbing manuscript, wherein the method comprises the following steps: acquiring a target video file, wherein the target video file is compiled by a teaching and research staff according to a specified format; extracting all original contents of the target video file and formats corresponding to the original contents, and screening and matching all the original contents; and generating a target dubbing draft for dubbing by dubbing personnel from the original content left after screening and matching. The invention solves the following problems in the prior art: the process of collating dubbing drafts by dubbing personnel is time-consuming and labor-consuming, and because of the difference of dubbing roles, a plurality of collated dubbing drafts need to be exported.)

1. A method for generating a dubbing manuscript of a video file is characterized by comprising the following steps:

acquiring a target video file, wherein the target video file is compiled by a teaching and research staff according to a specified format;

extracting all original contents of the target video file and formats corresponding to the original contents, and screening and matching all the original contents;

and generating a target dubbing draft for dubbing by dubbing personnel from the original content left after screening and matching.

2. The method of claim 1, wherein the step of generating the dubbing draft for dubbing by the dubbing personnel comprises:

and combining the content of the target dubbing draft with a preset style to generate a target dubbing file, and generating a corresponding target HTML file from the target dubbing file by a template rendering method.

3. The method for generating a dubbing manuscript in a video file according to claim 1, wherein the generating a target dubbing file by combining the content of the target dubbing manuscript with a preset style, and generating a corresponding target HTML file from the target dubbing file by a template rendering method comprises:

uploading the target HTML file to a designated server;

and receiving a target access link which is returned by the specified server and corresponds to the target HTML file.

4. The method of claim 1, wherein after receiving the target access link corresponding to the target HTML file returned by the designated server, the method comprises:

and sending the target access link to a specified address for the dubbing staff to view the target HTML file.

5. The method of claim 1, wherein the extracting all original contents of the target video document and the format corresponding to the original contents comprises:

and extracting all the original contents corresponding to the target video file and formats corresponding to all the original contents according to the original codes corresponding to the target video file.

6. The method of claim 1, wherein said screening and matching all of said original content comprises:

and screening and matching all the original contents by using a specified screening and matching method, wherein the specified screening and matching method comprises a regular expression method and a label matching method.

7. The method of claim 3, wherein the designated server comprises a Cleveland server and an Alice server.

8. An apparatus for generating a dubbing script for a video file, comprising:

the file acquisition module is used for acquiring a target video file which is compiled by teaching and research personnel according to a specified format;

the content extraction module is used for extracting all original contents of the target video file and formats corresponding to the original contents, and screening and matching all the original contents;

and the dubbing draft generating module is used for generating the original contents left after screening and matching into a target dubbing draft for dubbing personnel to dub.

9. A computer-readable storage medium having stored thereon a computer program which, when executed, implements the method of generating a dubbing script for a video file according to any one of claims 1 to 7.

10. A computer device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for generating a dubbing manuscript for a video file according to any one of claims 1 to 7 when executing the computer program.

Technical Field

The invention relates to the technical field of internet application, in particular to a method and a device for generating a dubbing manuscript of a video file.

Background

In the existing workflow, in order to complete the production of the curriculum video, the instructor and the developer will deliver the video to the video personnel after writing the finished video file. The video personnel can arrange a dubbing manuscript according to the video file and deliver the dubbing manuscript to the corresponding dubbing personnel. In this process, many information that is not related to dubbing, such as codes and pictures in the course and some video production related labels and diagrams, needs to be filtered out. However, the process of dubbing by dubbing personnel is time-consuming and labor-consuming, and because of different dubbing roles, a plurality of pieces of finished dubbing documents need to be exported and distributed to different dubbing personnel, which increases communication cost invisibly.

Disclosure of Invention

The embodiment of the invention provides a method and a device for generating a dubbing manuscript of a video file, which aim to solve the problems that in the prior art, the process of arranging the dubbing manuscript by dubbing personnel is time-consuming and labor-consuming, and a plurality of arranged dubbing manuscripts need to be exported due to different dubbing roles.

In order to solve the above technical problem, a first technical solution adopted in the embodiments of the present invention is as follows:

a method for generating a video file dubbing manuscript comprises the following steps: acquiring a target video file, wherein the target video file is compiled by a teaching and research staff according to a specified format; extracting all original contents of the target video file and formats corresponding to the original contents, and screening and matching all the original contents; and generating a target dubbing draft for dubbing by dubbing personnel from the original content left after screening and matching.

Optionally, after generating a dubbing draft for dubbing performed by a dubbing staff from the original content remaining after the filtering and matching, the method includes: and combining the content of the target dubbing draft with a preset style to generate a target dubbing file, and generating a corresponding target HTML file from the target dubbing file by a template rendering method.

Optionally, after the content of the target dubbing manuscript is combined with a preset style to generate a target dubbing file, and the target dubbing file is generated into a corresponding target HTML file by a template rendering method, the method includes: uploading the target HTML file to a designated server; and receiving a target access link which is returned by the specified server and corresponds to the target HTML file.

Optionally, after receiving the target access link corresponding to the target HTML file returned by the designated server, the method includes: and sending the target access link to a specified address for the dubbing staff to view the target HTML file.

Optionally, the extracting all original contents of the target video copy and the format corresponding to the original contents includes: and extracting all the original contents corresponding to the target video file and formats corresponding to all the original contents according to the original codes corresponding to the target video file.

Optionally, the screening and matching all the original contents includes: and screening and matching all the original contents by using a specified screening and matching method, wherein the specified screening and matching method comprises a regular expression method and a label matching method.

Optionally, the designated servers include a qiri cloud server and an ariicloud server.

In order to solve the above technical problem, a second technical solution adopted in the embodiments of the present invention is as follows:

a device for generating a dubbing script for a video document, comprising: the file acquisition module is used for acquiring a target video file which is compiled by teaching and research personnel according to a specified format; the content extraction module is used for extracting all original contents of the target video file and formats corresponding to the original contents, and screening and matching all the original contents; and the dubbing draft generating module is used for generating the original contents left after screening and matching into a target dubbing draft for dubbing personnel to dub.

In order to solve the above technical problem, a third technical solution adopted in the embodiments of the present invention is as follows:

a computer-readable storage medium having stored thereon a computer program which, when executed, implements the method of generating a dubbing script for a video document as described above.

In order to solve the above technical problem, a fourth technical solution adopted in the embodiments of the present invention is as follows:

a computer device comprising a processor, a memory and a computer program stored on the memory and operable on the processor, the processor executing the computer program to implement the method for generating a dubbing manuscript for a video file as described above.

The embodiment of the invention has the beneficial effects that: different from the situation in the prior art, the embodiment of the present invention obtains the target video file, the target video file is compiled by the instructor according to the specified format, extracts all the original contents of the target video file and the format corresponding to the original contents, screens and matches all the original contents, and finally generates the remaining original contents after the screening and matching into the target dubbing draft for dubbing by the dubbing staff, thereby solving the following problems in the prior art: the process of collating dubbing drafts by dubbing personnel is time-consuming and labor-consuming, and because of the difference of dubbing roles, a plurality of collated dubbing drafts need to be exported.

Drawings

Fig. 1 is a flowchart illustrating an implementation of a method for generating a dubbing manuscript of a video file according to a first embodiment of the present invention;

fig. 2 is a partial structural frame diagram of an embodiment of a device for generating a dubbing manuscript for a video file according to a second embodiment of the present invention;

FIG. 3 is a partial structural framework diagram of an embodiment of a computer-readable storage medium according to a third embodiment of the present invention;

fig. 4 is a partial structural framework diagram of an embodiment of a computer device according to a fourth embodiment of the present invention.

Detailed Description

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于机器学习和自然语言处理的段落自动识别方法及系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!