Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7611277B2 - Subtitle generation device, video transmission device, subtitle generation method, and program - Google Patents
[go: Go Back, main page]

JP7611277B2 - Subtitle generation device, video transmission device, subtitle generation method, and program - Google Patents

Subtitle generation device, video transmission device, subtitle generation method, and program Download PDF

Info

Publication number
JP7611277B2
JP7611277B2 JP2023013058A JP2023013058A JP7611277B2 JP 7611277 B2 JP7611277 B2 JP 7611277B2 JP 2023013058 A JP2023013058 A JP 2023013058A JP 2023013058 A JP2023013058 A JP 2023013058A JP 7611277 B2 JP7611277 B2 JP 7611277B2
Authority
JP
Japan
Prior art keywords
data
file
subtitle
recognition
files
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2023013058A
Other languages
Japanese (ja)
Other versions
JP2024108613A (en
Inventor
美穂子 薄井
信彦 渡邉
Original Assignee
Nttイノベーティブデバイス株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nttイノベーティブデバイス株式会社 filed Critical Nttイノベーティブデバイス株式会社
Priority to JP2023013058A priority Critical patent/JP7611277B2/en
Publication of JP2024108613A publication Critical patent/JP2024108613A/en
Application granted granted Critical
Publication of JP7611277B2 publication Critical patent/JP7611277B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Description

本開示は、字幕生成装置、映像伝送装置、字幕生成方法およびプログラムに関する。 This disclosure relates to a subtitle generation device, a video transmission device, a subtitle generation method, and a program.

インターネット等の通信回線を用いて映像や音声をリアルタイムに配信する(ストリーミング)サービスが普及してきている。その際に、音声を字幕化して表示するサービスも増加傾向にある。音声の字幕化については、映像の配信事業者から、音声認識技術を活用して音声を自動的に字幕化して表示するサービスが視聴者に提供されている場合もある。 Services that deliver video and audio in real time (streaming) using communication lines such as the Internet are becoming more common. At the same time, services that subtitle and display audio are also on the rise. In some cases, video distributors provide viewers with a service that uses voice recognition technology to automatically subtitle audio and display it.

特許文献1、2には、テレビにおける字幕に関する技術が記載されている。特許文献1では、字幕テキストを容易に修正する技術が開示されている。特許文献2では、音声認識時の表現のバリエーションに対応した言語モデルを構築する技術が開示されている。 Patent Documents 1 and 2 describe technologies related to subtitles on television. Patent Document 1 discloses a technology for easily correcting subtitle text. Patent Document 2 discloses a technology for constructing a language model that corresponds to variations in expression during speech recognition.

特許文献3、4には、ストリーミングにおける字幕に関する技術が記載されている。特許文献3では、番組内容に対する字幕の遅延を抑制する技術が開示されている。特許文献4では、音声状態を分析し作成した音声基準情報に基づいて字幕テキストを生成する技術が開示されている。 Patent Documents 3 and 4 describe technologies related to subtitles in streaming. Patent Document 3 discloses a technology that suppresses delays in subtitles relative to program content. Patent Document 4 discloses a technology that generates subtitle text based on audio reference information created by analyzing the audio state.

特開2022-073807号公報JP 2022-073807 A 特開2016-024325号公報JP 2016-024325 A 特開2020-027984号公報JP 2020-027984 A 特開2019-213198号公報JP 2019-213198 A

字幕サービスでは、一般的に、人が発する音声に続いて順次、字幕が表示される。日本語の場合、漢字、ひらがな、カタカナなどが混在して表示される。映像データに字幕を付与する場合、映像の内容に適した字幕の表示が要求される。 In a subtitle service, subtitles are generally displayed in sequence following the audio spoken by a person. In the case of Japanese, a mixture of kanji, hiragana, katakana, etc. is displayed. When adding subtitles to video data, it is necessary to display subtitles that are appropriate for the content of the video.

しかしながら、時として、映像の内容に適さない字幕が表示されてしまう場合がある。例えば、漢字に変換する際に、同音の異なる意味の漢字に誤変換されてしまう場合がある。 However, sometimes subtitles that are not appropriate for the content of the video are displayed. For example, when converting to kanji, the text may be mistakenly converted to kanji with the same pronunciation but a different meaning.

本開示は上記の課題に鑑みてなされたものであって、本開示は、映像データの音声から適切な字幕を生成する技術を提供することを目的とする。 This disclosure has been made in consideration of the above problems, and aims to provide a technology for generating appropriate subtitles from the audio of video data.

上記目的を達成するため、本開示の一態様は、字幕生成装置であって、音声を含む映像データを所定の長さのファイルに分割する分割部と、分割された各ファイルにおいて、当該ファイルから抽出された音声の区切れを用いて、音声区間を検出する検出部と、前記音声区間の音声を認識用データとして生成するデータ生成部と、前記認識用データの音声を、字幕としてテキストデータに変換する音声認識部と、を有し、前記データ生成部は、前記音声区間が複数のファイルに跨る場合、前記複数のファイルの前記音声区間に対応する音声を結合して認識用データを生成する。 In order to achieve the above object, one aspect of the present disclosure is a subtitle generation device having a division unit that divides video data including audio into files of a predetermined length, a detection unit that detects speech segments in each divided file using segments of audio extracted from the file, a data generation unit that generates the audio of the speech segments as recognition data, and a voice recognition unit that converts the audio of the recognition data into text data as subtitles, and when the speech segment spans multiple files, the data generation unit generates the recognition data by combining the audio corresponding to the speech segment in the multiple files.

本開示の一態様は、コンピュータが行う字幕生成方法であって、音声を含む映像データを所定の長さのファイルに分割し、分割された各ファイルにおいて、当該ファイルから抽出された音声の区切れを用いて、音声区間を検出し、前記音声区間の音声を認識用データとして生成し、前記認識用データの音声を、字幕としてテキストデータに変換し、前記認識用データの生成において、前記音声区間が複数のファイルに跨る場合、前記複数のファイルの前記音声区間に対応する音声を結合して認識用データを生成する。 One aspect of the present disclosure is a subtitle generation method performed by a computer, which divides video data including audio into files of a predetermined length, detects audio segments in each divided file using audio segments extracted from the file, generates the audio of the audio segments as recognition data, converts the audio of the recognition data into text data as subtitles, and, in generating the recognition data, if the audio segment spans multiple files, combines the audio corresponding to the audio segment from the multiple files to generate the recognition data.

本開示の一態様は、上記字幕生成装置として、コンピュータを機能させるプログラムである。 One aspect of the present disclosure is a program that causes a computer to function as the above-mentioned subtitle generation device.

本開示によれば、映像データの音声から適切な字幕を生成する技術を提供することができる。 This disclosure provides a technology that generates appropriate subtitles from the audio of video data.

図1は、本実施形態に係る映像伝送の概要を示すイメージ図である。FIG. 1 is a conceptual diagram showing an overview of video transmission according to this embodiment. 図2は、本実施形態の映像伝送装置の構成例を示す図である。FIG. 2 is a diagram showing an example of the configuration of a video transmission device according to the present embodiment. 図3は、映像伝送装置の各部が出力するデータのイメージ図である。FIG. 3 is an image diagram of data output from each unit of the video transmission device. 図4は、映像伝送装置の字幕生成処理を示すフローチャートである。FIG. 4 is a flowchart showing the subtitle generation process of the video transmission device. 図5は、ハードウェア構成図である。FIG. 5 is a diagram showing a hardware configuration.

以下、本開示の実施形態を、図面を用いて説明する。複数の図面中同一のものには同じ参照符号を付し、説明は繰り返さない。 Embodiments of the present disclosure will be described below with reference to the drawings. The same reference symbols are used for the same parts in the drawings, and descriptions will not be repeated.

図1は、本実施形態に係る映像伝送装置(字幕生成装置)を用いた映像伝送のイメージ図である。ここでは、映像伝送装置が映像データ(例えば動画コンテンツなど)の字幕を生成する手順の概要を説明する。 Figure 1 is an image diagram of video transmission using a video transmission device (subtitle generation device) according to this embodiment. Here, we will explain an overview of the procedure by which the video transmission device generates subtitles for video data (e.g., video content, etc.).

映像(ビデオ)と音(オーディオ)とを含む映像データが、カメラ、サーバ等の装置または蓄積媒体から、映像伝送装置1に供給される。なお、映像伝送装置1に供給される映像データには、字幕は含まれていない。 Video data including video and audio is supplied to the video transmission device 1 from a device such as a camera or a server or a storage medium. Note that the video data supplied to the video transmission device 1 does not include subtitles.

ここで、音には、人間が発する音声と、音声以外の音(例えば音楽等)が含まれる。本実施形態の音声は、人が発する音(声)を意味し、その以外の音は含まれない。また、本明細書では、「発話」という用語は、音声と同義である。 Here, sound includes human speech and non-speech sounds (such as music). In this embodiment, sound means human speech (voice), and does not include other sounds. In this specification, the term "utterance" is synonymous with voice.

映像伝送装置1は、供給された映像データに基づいて字幕設定ファイルと、プレイリストとを生成する。そして、映像伝送装置1は、入力された映像データとともに、生成した字幕設定ファイルとプレイリストとを、配信サーバ2などにアップロードする。 The video transmission device 1 generates a subtitle setting file and a playlist based on the supplied video data. Then, the video transmission device 1 uploads the generated subtitle setting file and playlist together with the input video data to a distribution server 2 or the like.

配信サーバ2は、ユーザ(視聴者)の要求に応じて、ユーザのPC、スマートフォン等の再生装置3に、映像データ、字幕設定ファイルおよびプレイリストを配信する。字幕設定ファイルは、映像データのどの時刻(例えば再生開始からの時間)に、どの字幕を表示するかを指定するファイルである。本実施形態では配信サーバ2は、再生装置3にストリーミング配信する。ユーザは、再生装置3のブラウザなどを用いて、ストリーミング配信された映像データを字幕と共に再生する。 In response to a request from a user (viewer), the distribution server 2 distributes video data, a subtitle setting file, and a playlist to a playback device 3 such as the user's PC or smartphone. The subtitle setting file is a file that specifies which subtitles are to be displayed at what time in the video data (e.g., the time from the start of playback). In this embodiment, the distribution server 2 performs streaming distribution to the playback device 3. The user uses a browser on the playback device 3 to play the streamed video data together with the subtitles.

なお、映像伝送装置1は、物理的な装置として実装することができ、あるいはクラウド上にソフトウェアとして構成することも可能である。 The video transmission device 1 can be implemented as a physical device, or can be configured as software on the cloud.

次に、図1に示す映像伝送装置1の動作概要を説明する。 Next, we will explain the outline of the operation of the video transmission device 1 shown in Figure 1.

映像伝送装置1は、ストリームデータとして入力された映像データを、順次、所定の長さに分割し、分割したファイルを生成する(S1)。 The video transmission device 1 sequentially divides the video data input as stream data into files of a specified length and generates the divided files (S1).

映像データの分割は、例えば、HLS(HTTP Live Streaming)に基づく動画配信サービスを使用することで実施できる。HLSは、HTTPプロトコルに準拠したストリーミング方式のネットワーク配信サービスであって、広く利用されている。HLSによるデータ分割は、例えばトランスコーダなどの装置にその分割機能が搭載されている。本実施形態では、映像データとして、HLSに従ったデータを用いる。 Video data can be divided, for example, by using a video distribution service based on HLS (HTTP Live Streaming). HLS is a streaming network distribution service that complies with the HTTP protocol and is widely used. Data division using HLS is performed by a device such as a transcoder that has a division function. In this embodiment, data that complies with HLS is used as the video data.

HLSでは、TS(Transport Stream)形式の映像データを、複数のセグメントファイル(以下、TSファイル) に分割して伝送する。なお、TSファイルは、MPEG2-TSセグメントファイル、セグメント、或いはTSチャンクファイルとも称する。 In HLS, video data in TS (Transport Stream) format is divided into multiple segment files (hereafter referred to as TS files) and transmitted. TS files are also called MPEG2-TS segment files, segments, or TS chunk files.

なお、映像データを分割する際の所定の長さは、任意に指定できるものとする。具体的には、各TSファイルの時間幅(分割幅)は任意の値としてもよい。後述するが、このTSファイルの時間幅は、検証の結果、10秒程度とした場合に字幕の精度が最も向上した。 The length of time into which video data is divided can be specified as desired. Specifically, the time width of each TS file (division width) can be any value. As will be described later, testing has shown that a time width of TS files of around 10 seconds provides the best results in improved subtitle accuracy.

映像伝送装置1は、TSファイルの再生順、再生時間、コンテンツのバリエーション等が設定されたプレイリストを生成する。プレイリストは、インデックスファイル、m3u8ファイルとも称される。プレイリストは、TSファイルとともに配信サーバ2に伝送される。 The video transmission device 1 generates a playlist in which the playback order of the TS files, playback time, content variations, etc. are set. The playlist is also called an index file or m3u8 file. The playlist is transmitted to the distribution server 2 together with the TS files.

なお、本実施形態では、HLS方式を利用する場合を例として説明するが、本開示はHLS方式に限定されない。入力される映像データを所定の長さのファイルに分割できれば、その他の方式を利用してもよい。例えば、TSデータではなく、mp4データを分割するMPEG-DASH、CMAF(Common Media Application Format)の方式を利用してもよい。 In this embodiment, the case where the HLS method is used will be described as an example, but the present disclosure is not limited to the HLS method. Other methods may be used as long as the input video data can be divided into files of a predetermined length. For example, instead of TS data, MPEG-DASH or CMAF (Common Media Application Format) methods for dividing mp4 data may be used.

映像伝送装置1は、分割された各TSファイルについて、音声認識するための認識用データを、順次、生成する(S2)。特に、一連の音声が複数のTSファイルに跨る場合、関連する音声を結合して一塊の音声として認識用データを生成する。 The video transmission device 1 sequentially generates recognition data for audio recognition for each divided TS file (S2). In particular, when a series of sounds spans multiple TS files, related sounds are combined to generate recognition data for a single chunk of audio.

映像伝送装置1は、生成された認識用データを音声認識して、映像とともに表示する字幕(字幕用表示)を生成する(S3)。音声認識としては、音声認識AIエンジンを使用することが好ましい。 The video transmission device 1 performs voice recognition on the generated recognition data and generates subtitles (subtitle display) to be displayed together with the video (S3). For the voice recognition, it is preferable to use a voice recognition AI engine.

映像伝送装置1は、音声認識で生成した字幕(テキストデータ)を映像に表示(付加)するための字幕設定ファイルを生成する(S4)。字幕設定ファイルは、映像のどの時刻または、時間帯に、どの字幕を表示するかを指定するファイルである。なお、映像伝送装置1は、字幕設定ファイルを生成する際に、プレイリストも更新する。 The video transmission device 1 generates a subtitle setting file for displaying (adding) the subtitles (text data) generated by voice recognition to the video (S4). The subtitle setting file is a file that specifies which subtitles are to be displayed at what time or time period in the video. Note that the video transmission device 1 also updates the playlist when generating the subtitle setting file.

以上の処理によって、映像伝送装置1は、入力された映像データを分割したファイルと、生成した字幕設定ファイル及びプレイリストとを、配信サーバ2に出力する。 Through the above process, the video transmission device 1 outputs the files into which the input video data has been divided, as well as the generated subtitle setting file and playlist, to the distribution server 2.

図2は、図1に示す映像伝送装置1の構成を示すブロック図である。図3は、映像伝送装置1の各部が出力するデータのイメージを示す図である。 Figure 2 is a block diagram showing the configuration of the video transmission device 1 shown in Figure 1. Figure 3 is a diagram showing an example of data output by each unit of the video transmission device 1.

図示する映像伝送装置1は、分割部11と、音声抽出部12と、検出部13と、データ生成部14と、音声認識部15と、字幕設定部16と、プレイリスト作成部17と、プレイリスト更新部18とを含む。なお、各部11~18は、プログラムなどのソフトウェアで実装されていてもよく、あるいは回路などのハードウェアで実装されていてもよい。 The illustrated video transmission device 1 includes a division unit 11, an audio extraction unit 12, a detection unit 13, a data generation unit 14, an audio recognition unit 15, a subtitle setting unit 16, a playlist creation unit 17, and a playlist update unit 18. Each of the units 11 to 18 may be implemented as software such as a program, or may be implemented as hardware such as a circuit.

分割部11は、音声を含む映像データを所定の長さのファイルに分割する。具体的には、分割部11は、映像伝送装置1に入力されたTSデータ(映像データ)を、順次、所定の長さのデータに分割して、TSファイル(TSファイル1、TSファイル2・・・)を生成する。所定の長さは、映像データを再生する時間幅に対応するデータ量を意味し、具体的には、TSファイルのデータを再生した場合の時間幅(分割幅)を指す。 The splitter 11 splits the video data including audio into files of a predetermined length. Specifically, the splitter 11 splits the TS data (video data) input to the video transmission device 1 sequentially into data of a predetermined length to generate TS files (TS file 1, TS file 2, ...). The predetermined length refers to the amount of data corresponding to the time width for playing the video data, and specifically refers to the time width (division width) when the data of the TS file is played.

なお、分割部11は、TSデータを、10秒程度の長さのTSファイルに順次、分割することが好ましい。10秒程度の長さは、例えば、10秒-n秒以上、10秒+n秒である。例えばn=5とし、所定の長さは5秒以上15秒以下としてもよい。 Note that it is preferable that the splitting unit 11 sequentially splits the TS data into TS files with a length of about 10 seconds. A length of about 10 seconds is, for example, 10 seconds - n seconds or more, or 10 seconds + n seconds. For example, n = 5, and the predetermined length may be 5 seconds or more and 15 seconds or less.

図3(a)は、カメラ、蓄積データ等から分割部11に入力されるTSデータを示す。図3(b)は、分割部11から出力されるTSファイルを示す。分割部11は、入力されたTSデータをリアルタイムに分割してTSファイルを生成するだけでなく、入力されたTSデータを一旦、バッファメモリに蓄積した後に、高速に分割処理してもよい。なお、図3には示していないが、実際の処理では、各部11~18の処理遅延が多少発生する。ここでは説明の都合上、図3では、処理遅延は示していない。 Figure 3(a) shows TS data input to the splitting unit 11 from a camera, stored data, etc. Figure 3(b) shows a TS file output from the splitting unit 11. The splitting unit 11 can not only split the input TS data in real time to generate TS files, but can also temporarily store the input TS data in a buffer memory and then split it at high speed. Although not shown in Figure 3, in actual processing, some processing delays occur in each of the units 11 to 18. For the sake of explanation, processing delays are not shown in Figure 3.

音声抽出部12は、各TSファイルに含まれる音(オーディオ)から音声を抽出する。 The audio extraction unit 12 extracts audio from the sound (audio) contained in each TS file.

検出部13は、分割された各TSファイルにおいて、当該TSファイルから抽出された音声(発話)の区切れを用いて、音声区間(発話区間)を検出する。具体的には、検出部13は、音声区間の開始時刻と終了時刻とを検出する。検出部13は、音声の区切れ(brake of the voice interval)を検出する。音声の区切れは、抽出した音声において無音状態の有無に基づいて検出することができる。無音状態の条件は、期間、音量等で任意に設定可能である。また、無音状態は、汎用のアプリケーションを用いて検出することができる。 The detection unit 13 detects a voice interval (speech interval) in each divided TS file using the breaks in the voice (utterance) extracted from the TS file. Specifically, the detection unit 13 detects the start time and end time of the voice interval. The detection unit 13 detects a break in the voice interval. The break in the voice can be detected based on the presence or absence of a silence in the extracted voice. The conditions for the silence can be set arbitrarily in terms of duration, volume, etc. Furthermore, the silence can be detected using a general-purpose application.

図3(c)は、検出部13の出力例を示す。図示する例では、検出部13は、最初にTSファイル1の音声区間を検出する。検出部13は、TSファイル1の音声の区切れX(無音部分)を用いて音声区間1、音声区間2、及び音声区間3を検出する。 Figure 3(c) shows an example of the output of the detection unit 13. In the example shown, the detection unit 13 first detects the voice section of TS file 1. The detection unit 13 detects voice section 1, voice section 2, and voice section 3 using the voice division X (silent portion) of TS file 1.

TSファイル1の最後の音声区間3は、その後端において音声の区切れXが検出されない。従って、音声区間3は、次のTSファイル2に続く(次のTSファイル2に跨っている)ことが分かる。この場合、検出部13は、音声区間の途切れY(discontinuity of the voice interval)或いは音声区間の分断Y(separation of the voice interval)が検出されと判定する。 No audio separation X is detected at the end of the final voice interval 3 in TS file 1. Therefore, it is clear that voice interval 3 continues into the next TS file 2 (straddles the next TS file 2). In this case, the detection unit 13 determines that a discontinuity Y of the voice interval or a separation Y of the voice interval has been detected.

音声の区切れXは、音声区間の前後における無音部分を示す。音声区間の途切れYは、本来連続すべき音声区間が、複数のTSファイルに分断されたことを示す。なお、音声の区切れXは、音声区間の区切れと称する場合があり、また、音声区間の途切れYは、音声の途切れと称する場合もある。 An audio division X indicates silent parts before and after an audio section. An audio section break Y indicates that an audio section that should be continuous has been split into multiple TS files. Note that an audio division X is sometimes referred to as an audio section break, and an audio section break Y is sometimes referred to as an audio break.

続いて、検出部13は、TSファイル2の音声区間を検出する。検出部13は、音声の区切れXを用いて、音声区間3及び音声区間4を検出する。ここで、検出部13は、TSファイル1の音声区間3は分断されたと判定したため、TSファイル2で最初に検出された音声区間3は、直前のTSファイル1の最後の音声区間3に連続する音声区間であると判定する。そのため、検出部13は、TSファイル2で最初に検出された音声区間と、TSファイル1の最後の音声区間3とを関連付ける。例えば、検出部13は、TSファイル2で最初に検出された音声区間に、TSファイル1の最後の音声区間3と同じ識別子を付与するなどする。 Next, the detection unit 13 detects the voice section in TS file 2. The detection unit 13 detects voice section 3 and voice section 4 using the voice division X. Here, the detection unit 13 determines that the voice section 3 in TS file 1 has been divided, and therefore determines that the voice section 3 first detected in TS file 2 is the voice section that continues to the last voice section 3 in the immediately preceding TS file 1. Therefore, the detection unit 13 associates the voice section first detected in TS file 2 with the last voice section 3 in TS file 1. For example, the detection unit 13 assigns the same identifier as the last voice section 3 in TS file 1 to the voice section first detected in TS file 2.

TSファイル2の最後に検出された音声区間4は、その後端において音声の区切れXが検出されている。そのため、検出部13は、音声区間4は、分断されることなくTSファイル2で完結していると判定する。 The last detected audio section 4 in TS file 2 has an audio break X detected at its end. Therefore, the detection unit 13 determines that audio section 4 is complete in TS file 2 without being interrupted.

続いて、検出部13は、TSファイル3の音声区間を検出する。直前のTSファイル2で最後の音声区間4は完結しているため、検出部13は、最初の音声区間5は、当該TSファイル3で開始された音声区間である判定する。そして、最初で最後の音声区間5の後端において、音声の区切れXが検出されないため、検出部13は、音声区間の途切れYが発生し、音声区間5は分断されたと判定する。 Then, the detection unit 13 detects the voice section of the TS file 3. Because the last voice section 4 is completed in the immediately preceding TS file 2, the detection unit 13 determines that the first voice section 5 is the voice section that started in that TS file 3. Then, because no voice break X is detected at the end of the first and last voice section 5, the detection unit 13 determines that a voice break Y has occurred and that the voice section 5 has been divided.

そして、検出部13は、TSファイル4の音声区間を検出する。直前のTSファイル3で音声区間5は分断されたと判定したため、検出部13は、TSファイル4の最初に検出された音声区間5は、TSファイル3の音声区間5に連続する音声区間と判定する。 Then, the detection unit 13 detects the voice section in TS file 4. Because it has been determined that the voice section 5 in the immediately preceding TS file 3 has been divided, the detection unit 13 determines that the first voice section 5 detected in TS file 4 is a voice section that continues to the voice section 5 in TS file 3.

以降のTSファイルについても、検出部13は、同様に音声区間を検出する。なお、検出部13は、各TSファイルで検出した音声区間に関する情報をデータ生成部14に出力する。音声区間に関する情報は、例えば、音声の区切れXが検出された時刻または時間帯、音声区間の開始時刻と終了時刻など時間帯、次の音声区間に跨った分断された音声区間か否かなどの情報である。 The detection unit 13 similarly detects the voice section for subsequent TS files. The detection unit 13 outputs information about the voice section detected in each TS file to the data generation unit 14. The information about the voice section is, for example, information such as the time or time period when the voice break X was detected, the time period such as the start time and end time of the voice section, and whether or not it is a divided voice section that spans the next voice section.

次に、データ生成部14は、検出部13が検出した音声区間の音声を、認識用データとして生成する。データ生成部14は、音声区間が複数のTSファイルに跨る場合、複数のTSファイルの前記音声区間に対応する音声を結合して認識用データを生成する。すなわち、データ生成部14は、音声認識で処理しやすい認識用データを生成する。データ生成部14は、TSファイルの最後に音声の区切れXが検出されない場合、当該TSファイルの最後に検出された音声区間は、分断されており、次のファイルに跨ると判定してもよい。 Next, the data generation unit 14 generates the audio of the audio section detected by the detection unit 13 as recognition data. When an audio section spans multiple TS files, the data generation unit 14 generates recognition data by combining audio corresponding to the audio section in the multiple TS files. In other words, the data generation unit 14 generates recognition data that is easy to process by voice recognition. When no audio break X is detected at the end of a TS file, the data generation unit 14 may determine that the audio section detected at the end of the TS file is divided and spans the next file.

図3(d)は、データ生成部14が出力する認識用データのイメージを示す。図示する例では、データ生成部14は、TSファイル1で検出された音声区間1および音声区間2については、TSファイル1内で完結しているため、各音声区間1,2の音声を、それぞれそのまま認識用データ1、2とする。 Figure 3(d) shows an image of the recognition data output by the data generation unit 14. In the example shown, the data generation unit 14 treats the speech of speech section 1 and speech section 2 detected in TS file 1 as recognition data 1 and 2 as they are, respectively, because they are complete within TS file 1.

TSファイル1の最後の音声区間3は分断されて、次のTSファイル2に跨っているため、データ生成部14は、TSファイル1の音声区間3の音声を、次のTSファイル2で最初に検出した音声区間3の音声と結合して認識用データ3を生成する。 The final audio section 3 of TS file 1 is split and spans the next TS file 2, so the data generator 14 combines the audio of audio section 3 of TS file 1 with the audio of the first audio section 3 detected in the next TS file 2 to generate recognition data 3.

TSファイル2の音声区間4は、音声の区切れXがTSファイル2内で検出されているため、データ生成部14は、音声区間4の音声をそのまま認識用データ4とする。 In the voice section 4 of the TS file 2, the voice boundary X has been detected within the TS file 2, so the data generator 14 uses the voice in the voice section 4 as recognition data 4 as is.

TSファイル3の音声区間5は分断されて、次のTSファイル4に跨っているため、データ生成部14は、TSファイル3の音声区間5の音声を、次のTSファイル4で最初に検出した音声区間5の音声と結合して認識用データ5を生成する。データ生成部14は生成した認識用データを、順次、音声認識部15に出力する。 Because the voice section 5 of TS file 3 is divided and spans the next TS file 4, the data generation unit 14 combines the voice of the voice section 5 of TS file 3 with the voice of the voice section 5 that is first detected in the next TS file 4 to generate recognition data 5. The data generation unit 14 outputs the generated recognition data sequentially to the voice recognition unit 15.

音声認識部15は、データ生成部14が生成した認識用データの音声を、音声認識して字幕としてテキストデータに変換する。本実施形態では、音声の途切れXを用いて音声区間を検出し、音声区間が分断されて複数のTSファイルに跨っている場合は、分断された音声区間を結合した認識用データを生成し、認識用データを用いて音声認識する。このように、認識用データは、音声の区切れXのない一連の発話の区間に相当する音声であるため、音声認識部15が音声認識しやすいデータである。そのため、本実施形態では、発話の分断による音声認識の誤変換を防止し、字幕の適確性をより向上することができる。 The speech recognition unit 15 recognizes the speech of the recognition data generated by the data generation unit 14 and converts it into text data as subtitles. In this embodiment, speech intervals are detected using speech breaks X, and when a speech interval is interrupted and spans multiple TS files, recognition data is generated by combining the interrupted speech intervals, and speech recognition is performed using the recognition data. In this way, the recognition data is speech equivalent to a series of speech intervals without speech breaks X, and is therefore data that is easy for the speech recognition unit 15 to recognize. Therefore, in this embodiment, erroneous speech recognition conversion due to speech breaks can be prevented, and the accuracy of subtitles can be further improved.

なお、音声認識部15は、当該音声認識部15内に備える音声認識エンジンを使用して音声認識してもよく、あるいは、外部の音声認識エンジン4(例えばGoogle等の音声認識AIエンジン)を用いて音声認識してもよい。また、音声認識部15は、音声認識エンジンとして音声認識AIエンジンを用いて、認識用データの音声をテキストデータに変換することが好ましい。AI(artificial intelligence)を用いることで、従来の音声認識に比べてより高精度な字幕に変換することができる。 The voice recognition unit 15 may recognize voice using a voice recognition engine provided within the voice recognition unit 15, or may recognize voice using an external voice recognition engine 4 (for example, a voice recognition AI engine from Google or the like). It is preferable that the voice recognition unit 15 uses a voice recognition AI engine as the voice recognition engine to convert the voice of the recognition data into text data. By using AI (artificial intelligence), it is possible to convert into subtitles with higher accuracy than with conventional voice recognition.

図3(e)は、音声認識部15が変換した字幕のイメージを示す。図3(e)では、認識用データ1~5の音声をそれぞれ音声認識した結果を、字幕1~5と記載した。 Figure 3(e) shows an image of the subtitles converted by the speech recognition unit 15. In Figure 3(e), the results of speech recognition of the speech of recognition data 1 to 5, respectively, are written as subtitles 1 to 5.

字幕設定部16は、音声認識部15が変換したテキストデータを字幕として表示させるためのWebVTTファイル(字幕設定ファイル)を、TSファイル毎に生成する。WebVTTファイルは、表示したい字幕と、当該字幕の表示時間とが含まれる。字幕設定部16は、データ生成部14が複数のTSファイルの音声を結合して認識用データを生成した場合、前記認識用データから変換されたテキストデータを分割して、複数のTSファイルのそれぞれの字幕設定ファイルを生成してもよい。 The subtitle setting unit 16 generates a WebVTT file (subtitle setting file) for each TS file in order to display the text data converted by the voice recognition unit 15 as subtitles. The WebVTT file includes the subtitles to be displayed and the display time of the subtitles. When the data generation unit 14 combines the voices of multiple TS files to generate recognition data, the subtitle setting unit 16 may split the text data converted from the recognition data to generate subtitle setting files for each of the multiple TS files.

図3(f)は、字幕設定部16が生成するWebVTTファイルのイメージを示す。TSファイル1については、字幕設定部16は、字幕1、字幕2及び字幕3-1を、音声区間1、音声区間2及びTSファイル1音声区間3にそれぞれ対応して表示されるようにWebVTTファイル1を生成する。字幕3-1は、認識用データ3から変換された字幕3のうち、TSファイル1の音声区間3に相当する部分の字幕である。 Figure 3(f) shows an image of a WebVTT file generated by the subtitle setting unit 16. For TS file 1, the subtitle setting unit 16 generates WebVTT file 1 so that subtitle 1, subtitle 2, and subtitle 3-1 are displayed corresponding to speech section 1, speech section 2, and speech section 3 of TS file 1, respectively. Subtitle 3-1 is the subtitle for the part of subtitle 3 converted from recognition data 3 that corresponds to speech section 3 in TS file 1.

TSファイル2については、字幕設定部16は、字幕3―2及び字幕4を、TSファイル2の音声区間3、及び音声区間4にそれぞれ対応して表示されるようにWebVTTファイル2を生成する。字幕3―2は、認識用データ3から変換された字幕3のうち、TSファイル2の音声区間3に相当する部分の字幕である。 For TS file 2, the subtitle setting unit 16 generates a WebVTT file 2 so that subtitle 3-2 and subtitle 4 are displayed corresponding to speech section 3 and speech section 4, respectively, in the TS file 2. Subtitle 3-2 is the subtitle for the portion of subtitle 3 converted from recognition data 3 that corresponds to speech section 3 in the TS file 2.

TSファイル3については、字幕設定部16は、字幕5―1をTSファイル3の音声区間5に対応して表示されるようにWebVTTファイル3を生成する。字幕5-1は、字幕5の中のTSファイル3の音声区間5に相当する字幕である。 For TS file 3, the subtitle setting unit 16 generates a WebVTT file 3 so that subtitle 5-1 is displayed corresponding to audio section 5 of TS file 3. Subtitle 5-1 is a subtitle within subtitle 5 that corresponds to audio section 5 of TS file 3.

TSファイル4については、字幕設定部16は、字幕5―2をTSファイル4の音声区間5 に対応して表示されるようにWebVTTファイル4を生成する。字幕5-2は、認識用データ5から変換された字幕5のうち、TSファイル4の音声区間5に相当する部分の字幕である。 For TS file 4, the subtitle setting unit 16 generates a WebVTT file 4 so that subtitle 5-2 is displayed corresponding to the audio section 5 of the TS file 4. Subtitle 5-2 is the subtitle of the part of the subtitle 5 converted from the recognition data 5 that corresponds to the audio section 5 of the TS file 4.

プレイリスト生成部17は、分割部11でTSデータを複数のTSファイルに分割する際に、プレイリストを作成する。プレイリストには、分割されたTSファイルの再生順、コンテンツのバリエーション等が設定される。プレイリスト更新部18は、字幕設定部16がWebVTTファイルを生成すると、WebVTTファイルに含まれる字幕に関する情報をプレイリストに設定して、プレイリストを更新する。 The playlist generation unit 17 creates a playlist when the division unit 11 divides the TS data into multiple TS files. The playlist sets the playback order of the divided TS files, content variations, and the like. When the subtitle setting unit 16 generates a WebVTT file, the playlist update unit 18 sets information about subtitles included in the WebVTT file in the playlist and updates the playlist.

上述した映像伝送装置1において、実際には、音声抽出部12から字幕設定部16までの動作は、TSファイル毎に行われる。即ち、TSファイル1が入力された場合、検出部13は、音声区間1~3を検出し、データ生成部14は、音声区間1から認識用データ1を生成し、音声区間2から認識用データ2を生成する。データ生成部14は、音声区間3の認識用データについては、次のTSファイル2の処理に持ち越す。 In the above-mentioned video transmission device 1, the operations from the audio extraction unit 12 to the subtitle setting unit 16 are actually performed for each TS file. That is, when TS file 1 is input, the detection unit 13 detects speech segments 1 to 3, and the data generation unit 14 generates recognition data 1 from speech segment 1 and generates recognition data 2 from speech segment 2. The data generation unit 14 carries over the recognition data for speech segment 3 to the processing of the next TS file 2.

続いて、音声認識部15は、認識用データ1から字幕1を生成し、認識用データ2から字幕2を生成する。字幕設定部16は、字幕1、2の字幕に関する情報を用いてWebVTTファイル1を生成する。 Then, the voice recognition unit 15 generates subtitle 1 from the recognition data 1, and generates subtitle 2 from the recognition data 2. The subtitle setting unit 16 generates WebVTT file 1 using information about subtitles 1 and 2.

TSファイル2についても、TSファイル1に続いて同様の処理が行われる。特に、TSファイル1から持ち越された音声区間3は、TSファイル2で最初に検出した音声区間3と結合され、認識用データ3が生成される。認識用データ3は、音声認識部15で字幕3に変換され、字幕3の字幕に関する情報は、WebVTTファイル1及びWebVTTファイル2に分割して設定される。 For TS file 2, the same processing is carried out as for TS file 1. In particular, the voice section 3 carried over from TS file 1 is combined with the voice section 3 first detected in TS file 2 to generate recognition data 3. The recognition data 3 is converted into subtitles 3 by the voice recognition unit 15, and information related to subtitles 3 is divided and set in WebVTT file 1 and WebVTT file 2.

この時点で、WebVTTファイル1は完成したため、TSファイル1と共に、映像伝送装置1から出力される。なお、TSファイル1は、分割部11から出力され、WebVTTファイル1は字幕設定部16から出力される。 At this point, WebVTT file 1 is complete and is output from the video transmission device 1 together with TS file 1. Note that TS file 1 is output from the splitting unit 11, and WebVTT file 1 is output from the subtitle setting unit 16.

このように、映像伝送装置1からは、各TSファイルと対応するWebVTTファイルが、順次出力される。従って、映像伝送装置1から、TSファイルが出力される度に、当該TSファイルの存在を記したプレイリストも、WebVTTファイルと共に、プレイリスト更新部18から出力される。 In this way, the video transmission device 1 sequentially outputs each TS file and the corresponding WebVTT file. Therefore, every time a TS file is output from the video transmission device 1, a playlist indicating the existence of that TS file is also output from the playlist update unit 18 together with the WebVTT file.

なお、分割部11、字幕設定部16およびプレイリスト更新部18は、TSファイルの出力と、WebVTTファイルおよびプレイリストの出力とが同期するように、連携するものとする。 The division unit 11, the subtitle setting unit 16, and the playlist update unit 18 work together to synchronize the output of the TS file with the output of the WebVTT file and the playlist.

図4は、本実施形態の映像伝送装置1の処理を示すフローチャートである。ここでは、映像伝送装置1がWebVTTファイル(字幕設定ファイル)を生成するまでの処理を示している。 Figure 4 is a flowchart showing the processing of the video transmission device 1 of this embodiment. This shows the processing up to the point where the video transmission device 1 generates a WebVTT file (subtitle setting file).

分割部11は、音声を含むTSデータ(映像データ)を所定の長さに分割し、分割したデータのTSファイルを順次出力する(S11)。映像伝送装置1は、以降の処理(S12~S23)を、TSファイル毎に行う。なお、処理対象のTSファイルを、ここではTSファイルnとする。 The division unit 11 divides the TS data (video data) including audio into pieces of a predetermined length, and sequentially outputs the TS files of the divided data (S11). The video transmission device 1 performs the subsequent processes (S12 to S23) for each TS file. Here, the TS file to be processed is referred to as TS file n.

音声抽出部12は、分割したTSファイルnから音声を抽出する(S12)。 The audio extraction unit 12 extracts audio from the divided TS file n (S12).

検出部13は、音声抽出部12が抽出した音声から、音声の区切れXを用いて音声区間を検出する(S13)。具体的には、検出部13は、S12で抽出した音声について、無音部分を検出することで音声の区切れXを検出し、音声区間を特定する。ここで、音声区間の後端で音声の区切れXが検出されない場合、検出部13は、当該音声区間は次のTSファイルn+1に跨る、分断された音声区間であると判定する。即ち、検出部13は、音声区間に途切れYが発生したと判定する。検出部13は検出した各音声区間に関する情報をデータ生成部14に送出する。 The detection unit 13 detects a voice section from the voice extracted by the voice extraction unit 12 using the voice division X (S13). Specifically, the detection unit 13 detects silent parts in the voice extracted in S12 to detect the voice division X and identify the voice section. Here, if the voice division X is not detected at the rear end of the voice section, the detection unit 13 determines that the voice section is a divided voice section that spans the next TS file n+1. In other words, the detection unit 13 determines that a break Y has occurred in the voice section. The detection unit 13 sends information about each detected voice section to the data generation unit 14.

データ生成部14は、音声区間に関する情報を用いて、直前のTSファイルn-1で分断された(持越しされた)音声区間があるか否かを判定する(S14)。分断された音声区間がない場合(S14:NO)、データ生成部14は、当該TSファイルnにおいて、後ろに音声の区切れXのある音声区間の音声を認識用データとして生成し、音声認識部15に順次出力する(S15)。 The data generation unit 14 uses the information about the voice section to determine whether or not there is a voice section that has been interrupted (carried over) in the immediately preceding TS file n-1 (S14). If there is no interrupted voice section (S14: NO), the data generation unit 14 generates the voice of the voice section that is followed by voice division X in the TS file n as recognition data, and outputs it sequentially to the voice recognition unit 15 (S15).

後ろに音声の区切れXのない、分断された音声区間が存在しない場合(S16:NO)、S19に進む。一方、分断された音声区間が存在する場合(S16:YES)、データ生成部14は、当該分断された音声区間の音声を、次のTSファイルn+1に持ち越すために図示しない記憶部に記憶する(S17)。 If there is no segmented audio section that is not followed by audio division X (S16: NO), proceed to S19. On the other hand, if there is a segmented audio section (S16: YES), the data generator 14 stores the audio of the segmented audio section in a storage unit (not shown) to carry it over to the next TS file n+1 (S17).

また、直前のTSファイルn-1で分断された(持越しされた)音声区間がある場合(S14:YES)、データ生成部14は、当該TSファイルnの最初の音声区間の音声に、直前のTSファイルn-1から持ち越した音声区間の音声を結合する(S18)。そして、データ生成部14は、S15に進む。S15~S17については前述の通りである。 Also, if there is a segmented (carried over) audio section in the immediately preceding TS file n-1 (S14: YES), the data generator 14 combines the audio of the first audio section in the TS file n with the audio of the audio section carried over from the immediately preceding TS file n-1 (S18). The data generator 14 then proceeds to S15. S15 to S17 are as described above.

音声認識部15は、データ生成部14が出力した各認識用データの音声を音声認識して、認識用データ毎にテキストデータに変換する(S19)。 The voice recognition unit 15 performs voice recognition on the voice of each recognition data output by the data generation unit 14 and converts each recognition data into text data (S19).

字幕設定部16は、変換したテキストデータを字幕として表示させるためのWebVTTファイル(字幕設定ファイル)を生成する(S20)。ここで、生成されるWebVTTファイルは、TSファイル1用のWebVTTファイルである。字幕設定部16は、WebVTTファイルに表示したい字幕(テキストテータ)と、当該字幕を表示する表示時間とを設定する。表示時間は、検出部13が検出した音声区間に関する情報などから取得(算出)することができる。 The subtitle setting unit 16 generates a WebVTT file (subtitle setting file) for displaying the converted text data as subtitles (S20). Here, the generated WebVTT file is a WebVTT file for TS file 1. The subtitle setting unit 16 sets the subtitles (text data) to be displayed in the WebVTT file and the display time for displaying the subtitles. The display time can be obtained (calculated) from information about the speech section detected by the detection unit 13, etc.

なお、字幕設定部16は、データ生成部14が複数のTSファイルの音声区間を結合して認識用データを生成した場合(S18)、認識用データから変換されたテキストデータのうち、当該TSファイルnの音声区間に対応する部分のテキストデータを抽出して、WebVTTファイルを生成する。 When the data generating unit 14 generates the recognition data by combining the audio sections of multiple TS files (S18), the subtitle setting unit 16 extracts the text data converted from the recognition data that corresponds to the audio section of the TS file n, and generates a WebVTT file.

そして、字幕設定部16は、生成したWebVTTファイルを、対応するTSファイルnと共に出力する。 Then, the subtitle setting unit 16 outputs the generated WebVTT file together with the corresponding TS file n.

次のTSファイルn+1がある場合は(S21:YES)、映像伝送装置1は、S12に戻り以降の処理を繰り返し行う。次のTSファイルn+1がない場合は(S21:NO)、映像伝送装置1は、図4に示す処理を終了する。本実施形態では、図4のS12~S20の処理をTSファイル毎に順次に行うため、映像伝送装置1の処理遅延を低減することができる。 If there is a next TS file n+1 (S21: YES), the video transmission device 1 returns to S12 and repeats the subsequent processes. If there is no next TS file n+1 (S21: NO), the video transmission device 1 ends the process shown in FIG. 4. In this embodiment, the processes S12 to S20 in FIG. 4 are performed sequentially for each TS file, so that the processing delay of the video transmission device 1 can be reduced.

以上説明したように、本実施形態の映像伝送装置1(字幕生成装置)は、音声を含むTSファイル(映像データ)を所定の長さのTSファイルに分割する分割部11と、分割された各TSファイルにおいて、当該TSファイルから抽出された音声の区切れを用いて、音声区間を検出する検出部13と、前記音声区間の音声を認識用データとして生成するデータ生成部14と、前記認識用データの音声を、字幕としてテキストデータに変換する音声認識部15と、を有し、前記データ生成部14は、前記音声区間が複数のTSファイルに跨る場合、前記複数のTSファイルの前記音声区間に対応する音声を結合して認識用データを生成する。 As described above, the video transmission device 1 (subtitle generation device) of this embodiment has a division unit 11 that divides a TS file (video data) containing audio into TS files of a predetermined length, a detection unit 13 that detects audio sections in each of the divided TS files using audio segments extracted from the TS file, a data generation unit 14 that generates the audio of the audio section as recognition data, and a voice recognition unit 15 that converts the audio of the recognition data into text data as subtitles. When the audio section spans multiple TS files, the data generation unit 14 combines the audio corresponding to the audio section of the multiple TS files to generate recognition data.

このように本実施形態では、映像データを複数のTSファイルに分割し、各TSファイルにおいて複数のTSファイルに跨る分断された音声区間を検出した場合、分断された複数の音声区間を結合して音声認識が行い易い認識用データを生成する。これにより、本実施形態では、発話の分断による誤変換を防ぐことができ、字幕の適確性を向上できる。 In this manner, in this embodiment, video data is divided into multiple TS files, and when a segmented speech section that spans multiple TS files is detected in each TS file, the segmented speech sections are joined to generate recognition data that is easy to use for speech recognition. This makes it possible to prevent erroneous conversion due to speech segmentation, and improve the accuracy of subtitles.

音声認識にAIエンジンを使用することで、より高精度な字幕に変換することができる。 By using an AI engine for voice recognition, it is possible to convert the speech into subtitles with higher accuracy.

また、映像データを分割する時間単位を10秒程度(例えば5秒以上15秒以下)とした。10秒程度より大きいと映像配信までの遅延が増加し、10秒程度より小さいと字幕の精度が低下した。検証の結果、5秒以上15秒以下が好ましいことが分かった。 The time unit for dividing the video data was set to about 10 seconds (for example, between 5 and 15 seconds). If it was longer than about 10 seconds, the delay until the video was distributed increased, and if it was shorter than about 10 seconds, the accuracy of the subtitles decreased. As a result of the verification, it was found that a time unit between 5 and 15 seconds was preferable.

上記説明した映像伝送装置1は、例えば、図5に示すような汎用的なコンピュータシステムを用いることができる。図示するコンピュータシステムは、CPU(Central Processing Unit、プロセッサ)901と、メモリ902と、ストレージ903(HDD:Hard Disk Drive、SSD:Solid State Drive)と、通信装置904と、入力装置905と、出力装置906とを備える。メモリ902およびストレージ903は、記憶装置である。このコンピュータシステムにおいて、CPU901がメモリ902上にロードされた所定のプログラムを実行することにより、映像伝送装置1の機能が実現される。 The video transmission device 1 described above can use, for example, a general-purpose computer system as shown in FIG. 5. The computer system shown in the figure includes a CPU (Central Processing Unit, processor) 901, a memory 902, a storage 903 (HDD: Hard Disk Drive, SSD: Solid State Drive), a communication device 904, an input device 905, and an output device 906. The memory 902 and the storage 903 are storage devices. In this computer system, the functions of the video transmission device 1 are realized by the CPU 901 executing a predetermined program loaded on the memory 902.

映像伝送装置1は、1つのコンピュータで実装されてもよく、あるいは複数のコンピュータで実装されても良い。また、映像伝送装置1は、コンピュータに実装される仮想マシンであっても良い。映像伝送装置1のプログラムは、HDD、SSD、USB(Universal Serial Bus)メモリ、CD (Compact Disc)、DVD (Digital Versatile Disc)などのコンピュータ読取り可能な記録媒体に記憶することも、ネットワークを介して配信することもできる。コンピュータ読取り可能な記録媒体は、例えば非一時的な(non-transitory)記録媒体である。 The video transmission device 1 may be implemented in one computer, or in multiple computers. The video transmission device 1 may also be a virtual machine implemented in a computer. The program of the video transmission device 1 may be stored in a computer-readable recording medium such as a HDD, SSD, USB (Universal Serial Bus) memory, CD (Compact Disc), or DVD (Digital Versatile Disc), or may be distributed via a network. The computer-readable recording medium is, for example, a non-transitory recording medium.

なお、本開示は上記実施形態に限定されるものではなく、その要旨の範囲内で数々の変形が可能である。上記実施形態では、映像伝送装置1が字幕生成処理を行うものとして説明したが、本開示はこれに限定されない。本開示の字幕生成処理を実施可能な装置であれば、映像伝送装置1に限定されない。 Note that the present disclosure is not limited to the above embodiment, and various modifications are possible within the scope of the gist. In the above embodiment, the video transmission device 1 is described as performing the subtitle generation process, but the present disclosure is not limited to this. Any device capable of performing the subtitle generation process of the present disclosure is not limited to the video transmission device 1.

1 :映像伝送装置(字幕生成装置)
11:分割部
12:音声抽出部
13:検出部
14:データ生成部
15;音声認識部
16:字幕設定部
17:プレイリスト生成部
18:プレイリスト更新部
2 :配信サーバ
3 :再生装置
4 :音声認識AIエンジン
1: Video transmission device (subtitle generation device)
11: Division unit 12: Audio extraction unit 13: Detection unit 14: Data generation unit 15: Audio recognition unit 16: Subtitle setting unit 17: Playlist generation unit 18: Playlist update unit 2: Distribution server 3: Playback device 4: Audio recognition AI engine

Claims (10)

音声を含む映像データを所定の長さのファイルに分割する分割部と、
分割された各ファイルにおいて、当該ファイルから抽出された音声の区切れを用いて、音声区間を検出する検出部と、
前記音声区間の音声を認識用データとして生成するデータ生成部と、
前記認識用データの音声を、字幕としてテキストデータに変換する音声認識部と、を有し、
前記データ生成部は、前記音声区間が複数のファイルに跨る場合、前記複数のファイルの前記音声区間に対応する音声を結合して認識用データを生成する
字幕生成装置。
a division unit for dividing the video data including audio into files of a predetermined length;
a detection unit for detecting a voice section in each of the divided files by using a segment of the voice extracted from the file;
a data generating unit that generates speech in the speech section as recognition data;
a voice recognition unit that converts the voice of the recognition data into text data as subtitles,
When the speech section spans a plurality of files, the data generation unit generates recognition data by combining speech corresponding to the speech section of the plurality of files.
前記データ生成部は、ファイルの最後に前記区切れが検出されない場合、当該ファイルの最後に検出された音声区間は、分断されており、次のファイルに跨ると判定する
請求項1に記載の字幕生成装置。
The subtitle generation device according to claim 1 , wherein, when the break is not detected at the end of a file, the data generation unit determines that the audio section detected at the end of the file is broken and spans over to a next file.
前記テキストデータを字幕として表示させるための字幕設定ファイルを、前記ファイル毎に生成する字幕設定部を有する
請求項1に記載の字幕生成装置。
The subtitle generating device according to claim 1 , further comprising a subtitle setting unit configured to generate, for each of the files, a subtitle setting file for displaying the text data as subtitles.
前記字幕設定部は、前記データ生成部が複数のファイルの音声を結合して認識用データを生成した場合、前記認識用データから変換されたテキストデータを分割して、前記複数のファイルのそれぞれの字幕設定ファイルを生成する
請求項3に記載の字幕生成装置。
The subtitle generation device according to claim 3 , wherein when the data generation unit generates the recognition data by combining audio from a plurality of files, the subtitle setting unit divides text data converted from the recognition data to generate subtitle setting files for each of the plurality of files.
前記分割部は、映像データを、5秒以上15秒以下の長さのファイルに分割する
請求項1に記載の字幕生成装置。
The subtitle generating device according to claim 1 , wherein the division unit divides the video data into files each having a length of 5 seconds or more and 15 seconds or less.
前記映像データは、HLS(HTTP Live Streaming)に従ったデータである
請求項1に記載の字幕生成装置。
The subtitle generation device according to claim 1 , wherein the video data is data conforming to HLS (HTTP Live Streaming).
前記音声認識部は、音声認識AIエンジンを用いて、前記認識用データの音声をテキストデータに変換する
請求項1に記載の字幕生成装置。
The subtitle generation device according to claim 1 , wherein the speech recognition unit converts the speech of the recognition data into text data using a speech recognition AI engine.
請求項3又は4に記載の字幕生成装置を備え、
前記分割された各ファイルを映像データとして、前記字幕設定ファイルと共に出力する
映像伝送装置。
A subtitle generating device according to claim 3 or 4,
A video transmission device that outputs each of the divided files as video data together with the subtitle setting file.
コンピュータが行う字幕生成方法であって、
音声を含む映像データを所定の長さのファイルに分割し、
分割された各ファイルにおいて、当該ファイルから抽出された音声の区切れを用いて、音声区間を検出し、
前記音声区間の音声を認識用データとして生成し、
前記認識用データの音声を、字幕としてテキストデータに変換し、
前記認識用データの生成において、前記音声区間が複数のファイルに跨る場合、前記複数のファイルの前記音声区間に対応する音声を結合して認識用データを生成する
字幕生成方法。
1. A computer-implemented method for generating subtitles, comprising the steps of:
Divide the video data including audio into files of a specified length,
Detecting a voice section in each divided file using the voice segment extracted from the file;
generating speech in the speech section as recognition data;
converting the speech of the recognition data into text data as subtitles;
a subtitle generating method for generating the data for recognition, wherein, when the speech section spans a plurality of files, speech corresponding to the speech section of the plurality of files is combined to generate the data for recognition.
請求項1から7のいずれか1項に記載の字幕生成装置として、コンピュータを機能させるプログラム。 A program that causes a computer to function as a subtitle generation device according to any one of claims 1 to 7.
JP2023013058A 2023-01-31 2023-01-31 Subtitle generation device, video transmission device, subtitle generation method, and program Active JP7611277B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2023013058A JP7611277B2 (en) 2023-01-31 2023-01-31 Subtitle generation device, video transmission device, subtitle generation method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2023013058A JP7611277B2 (en) 2023-01-31 2023-01-31 Subtitle generation device, video transmission device, subtitle generation method, and program

Publications (2)

Publication Number Publication Date
JP2024108613A JP2024108613A (en) 2024-08-13
JP7611277B2 true JP7611277B2 (en) 2025-01-09

Family

ID=92217890

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2023013058A Active JP7611277B2 (en) 2023-01-31 2023-01-31 Subtitle generation device, video transmission device, subtitle generation method, and program

Country Status (1)

Country Link
JP (1) JP7611277B2 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008148121A (en) 2006-12-12 2008-06-26 Yahoo Japan Corp Video summary automatic creation apparatus, method, and computer program
JP2018045193A (en) 2016-09-16 2018-03-22 株式会社リコー Communication terminal, voice conversion method, and program
US20180174587A1 (en) 2016-12-16 2018-06-21 Kyocera Document Solution Inc. Audio transcription system
JP2018170001A (en) 2017-03-29 2018-11-01 西日本電信電話株式会社 VIDEO DATA PROCESSING DEVICE, VIDEO DATA PROCESSING METHOD, AND COMPUTER PROGRAM
JP2018207288A (en) 2017-06-02 2018-12-27 日本放送協会 Redistribution system, redistribution method and program
US20190104259A1 (en) 2017-09-29 2019-04-04 Apple Inc. Media editing application with anchored timeline for captions and subtitles
JP2019090917A (en) 2017-11-14 2019-06-13 株式会社情報環境デザイン研究所 Voice-to-text conversion device, method and computer program
JP2020178262A (en) 2019-04-19 2020-10-29 日本放送協会 Raw subtitle shaping processing device and program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008148121A (en) 2006-12-12 2008-06-26 Yahoo Japan Corp Video summary automatic creation apparatus, method, and computer program
JP2018045193A (en) 2016-09-16 2018-03-22 株式会社リコー Communication terminal, voice conversion method, and program
US20180174587A1 (en) 2016-12-16 2018-06-21 Kyocera Document Solution Inc. Audio transcription system
JP2018170001A (en) 2017-03-29 2018-11-01 西日本電信電話株式会社 VIDEO DATA PROCESSING DEVICE, VIDEO DATA PROCESSING METHOD, AND COMPUTER PROGRAM
JP2018207288A (en) 2017-06-02 2018-12-27 日本放送協会 Redistribution system, redistribution method and program
US20190104259A1 (en) 2017-09-29 2019-04-04 Apple Inc. Media editing application with anchored timeline for captions and subtitles
JP2019090917A (en) 2017-11-14 2019-06-13 株式会社情報環境デザイン研究所 Voice-to-text conversion device, method and computer program
JP2020178262A (en) 2019-04-19 2020-10-29 日本放送協会 Raw subtitle shaping processing device and program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
田中 壮,NHKプラス 生字幕同期システムの開発,電子情報通信学会技術研究報告,日本,一般社団法人電子情報通信学会,2022年01月20日,Vol.121 No.357,pp.30-35

Also Published As

Publication number Publication date
JP2024108613A (en) 2024-08-13

Similar Documents

Publication Publication Date Title
CN108780643B (en) Automatic dubbing method and device
CN101212648B (en) Method and apparatus for synchronizing data streams and metadata of content
US9552807B2 (en) Method, apparatus and system for regenerating voice intonation in automatically dubbed videos
US12549804B2 (en) Methods and systems for selective playback and attenuation of audio based on user preference
US10021445B2 (en) Automatic synchronization of subtitles based on audio fingerprinting
US20220417659A1 (en) Systems, methods, and devices for audio correction
JP2025515560A (en) Providing subtitles for video content
JP2012181358A (en) Text display time determination device, text display system, method, and program
CN107517406A (en) A kind of video clipping and the method for translation
JP2021090172A (en) Caption data generation device, content distribution system, video reproduction device, program, and caption data generation method
US20230345082A1 (en) Interactive pronunciation learning system
CN107688792B (en) Video translation method and system
JP7611277B2 (en) Subtitle generation device, video transmission device, subtitle generation method, and program
US10832692B1 (en) Machine learning system for matching groups of related media files
Artioli et al. Generative AI for Realistic Voice Dubbing Across Languages
US20230362452A1 (en) Distributor-side generation of captions based on various visual and non-visual elements in content
CN116980716A (en) Video processing method, device, equipment and storage medium
KR20220040045A (en) A video playback device and a method operating it for providing a caption synchronization
US20260024264A1 (en) Method and apparatus for personalized video content modification
US12464147B1 (en) Techniques for avoiding re-encoding of media content items
US20250372078A1 (en) Methods and servers for training a model to perform speaker change detection
CN107562737A (en) A kind of methods of video segmentation and its system for being used to translate
CN120340467A (en) Method, device, electronic device and computer-readable storage medium for processing banned words in audio
Feuz et al. AUTOMATIC DUBBING OF VIDEOS WITH MULTIPLE SPEAKERS
Carbune et al. Generating Condensed Videos

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20231222

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20241129

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20241210

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20241223

R150 Certificate of patent or registration of utility model

Ref document number: 7611277

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150