CROSS-REFERENCE TO RELATED APPLICATION

The present invention claims priority of Chinese patent application No. 201911150781.1, filed on Nov. 21, 2019. The entire disclosure of the above-identified application is hereby incorporated by reference herein and made a part of this specification.

BACKGROUND

With the development of the video display technology, subtitle display is required. The existing practice adopts a form of plug-in subtitles, the user translates subtitles and compiles the translated subtitles, then the compiled subtitles are uploaded and reviewed by the backstage. After the compiled subtitles are reviewed, the compiled subtitles are stored in the plug-in subtitle column of a corresponding video.

SUMMARY

The present invention provides a method and a system of displaying subtitle, a computing device and a readable storage medium to solve the defects of manual subtitle translation in the existing technology, which greatly reduces the efficiency and speed of displaying the plug-in subtitles and affects the user experience.

According an aspect of the present invention, a method of displaying subtitle is provided, the method comprising the following steps:

obtaining target audio information from video information;

converting the target audio information to first text information and translating the first text information to at least one kind of second text information, wherein the first text information and the at least one kind of second text information are represented in different language representation forms;

generating a corresponding first subtitle according to the first text information and generating at least one kind of second subtitle according to the at least one kind of second text information;

implementing a sensitive word processing to the first subtitle and the at least one kind of second subtitle to obtain a first target subtitle corresponding to the first subtitle and at least one kind of second target subtitle corresponding to the at least one kind of second subtitle, and storing; and

in response to a subtitle display operation instruction sent by a user, displaying a target subtitle corresponding to the subtitle display operation instruction, wherein the target subtitle is one or more of the first target subtitle and the at least one kind of second target subtitle.

Optionally, the implementing a sensitive word processing to the first subtitle and the at least one kind of second subtitle to obtain a first target subtitle and at least one kind of second target subtitle and storing comprises:

matching a plurality of preset words of a preset sensitive word table with a plurality of words of the first subtitle and the at least one kind of second subtitle to obtain target sensitive words from the first subtitle and the at least one kind of second subtitle;

processing the target sensitive words to obtain the first target subtitle and the at least one kind of second target subtitle; and

storing the first target subtitle and the at least one kind of second target subtitle in subtitle lists with corresponding language representation forms.

Optionally, the method of processing the target sensitive words at least comprises: replacing the target sensitive words with preset symbols or deleting the target sensitive words.

Optionally, the obtaining target audio information from video information, comprises:

decoding the video information to obtain a decoding result; and

extracting the target audio information from the decoding result.

Optionally, the decoding result at least comprises audio information, the audio information comprises noise and the target audio information, the extracting the target audio information from the decoding result comprises implementing noise reduction to the audio information to obtain the target audio information.

Optionally, the converting the target audio information to the first text information and translating the first text information to the at least one kind of second text information, comprises:

identifying a language representation form in the target audio information as the first language representation form;

converting the target audio information to the first text information with the first language representation form; and

translating the first text information to the second text information with the other language representation forms.

Optionally, the in response to a subtitle display operation instruction sent by a user, displaying a target subtitle corresponding to the subtitle display operation instruction, comprises:

identifying a target language representation form in the subtitle display operation instruction; and

displaying the target subtitle in a subtitle list with the target language representation form according to the target language representation form.

In order to realize the above purposes, the present invention further provides a system of displaying subtitle, the system specifically including the following components:

an obtaining module, obtaining target audio information from video information;

a converting module, converting the target audio information to first text information and translating the first text information to at least one kind of second text information, wherein the first text information and the at least one kind of second text information are represented in different language representation forms;

a generating module, generating a corresponding first subtitle according to the first text information and generating at least one kind of second subtitle according to the at least one kind of second text information;

a processing module, implementing a sensitive word processing to the first subtitle and the at least one kind of second subtitle to obtain a first target subtitle corresponding to the first subtitle and at least one kind of second target subtitle, and storing; and

a display module, in response to a subtitle display operation instruction sent by a user, display a target subtitle corresponding to the subtitle display operation instruction, wherein the target subtitle is one or more of the first target subtitle and the at least one kind of second target subtitle.

In order to realize the above purposes, the present invention further provides a computing device, comprising a memory, a processor and computer programs stored in the memory and executed by the processor, wherein the processor executes the computer programs for implementing the steps of the method of displaying subtitle.

In order to realize the above purposes, the present invention further provides a computer-readable storage medium, storing computer programs executed by at least one processor, to cause the processor to implement the steps of the method of displaying subtitle.

The method and system of displaying subtitle, computing device and readable storage medium provided in the present invention, through extracting target audio information from video information, identifying and converting the target audio information to text information and translating the text information to text information with a plurality of languages, and implementing sensitive word filtering to and storing the text information and the translated text information, when a language for the subtitles is clicked by a user, displaying the text information corresponding to the language to increase the efficiency and speed of displaying the plug-in subtitles, and reduce the risks resulted by sensitive words in the subtitles and improves user experience.

