Configuration
Reading time ~3 minutes
Cinegy Subtitling Service Configuration
Note
|
For the full detailed description of the Cinegy Subtitling Service installation and setup, refer to the following Quick Start Guide. |
The Cinegy Subtitling Service is configured via the appsettings.json file as described in the Application Settings article. This file is located at the following path: C:\ProgramData\Cinegy\SubtitlingService
.
WebSpeechToText Default Settings
Below is the configuration fragment relative to the automatic speech recognition configuration:
"SubtitleChannels": [
{
"Id": 0,
"Mode": "Playlist",
"ClearInterval": 500,
"Repositories": [
{
"Id": 0,
"Language": "ENG",
"FileSource": {
"FileSearchPolicy": "Auto",
"Directory": "D:\\Subs\\ENG"
},
"LiveSource": {
"Enabled": false,
"EndPoint": "127.0.0.1:50125",
"VerbosityEnabled": false
},
"RecognitionSource": {
"Enabled": true,
"EndPoint": "http://localhost:55000/",
"MicIn": false,
"Wrap": {
"Enabled": true,
"LineSize": 37,
"MaxLines": 2
}
}
}
],
"Streams": [
{
"InputUrl": "srt://193.169.0.56:6201",
"InputAdapter": "0.0.0.0",
"InputSrtLatency": -1,
"InputSrtPassphrase": null,
"OutputUrl": "srt://0.0.0.0:6202",
"OutputAdapter": "0.0.0.0",
"OutputBackupAdapter": null,
"OutputSrtPassphrase": null,
"OutputTTL": 1,
"FrameRate": "25",
"VideoPid": 0,
"Encoders": [
{
"Type": "Teletext",
"RepositoryId": 0,
"SubtitlePid": 4098,
"SyncOffset": 0,
"Magazine": 8,
"Page": 1
},
{
"Type": "DVB",
"RepositoryId": 0,
"SubtitlePid": 4099,
"SyncOffset": 0,
"FrameSize": "1920x1080"
}
],
"Multiplexer": {
"Type": "Video",
"Mode": "Insert",
"SyncDelayFrames": 7,
"SyncToleranceFrames": 0
}
}
]
}
]
The new subtitling source for the speech recognition workflow is introduced in the Cinegy Subtitling Service v25.10. The fragment of configuration for "RecognitionSource" looks as follows:
"RecognitionSource": {
"Enabled": true,
"EndPoint": "http://localhost:55000/",
"MicIn": false,
"Wrap": {
"Enabled": true,
"LineSize": 37,
"MaxLines": 2
}
}
In the "RecognitionSource" section, set the Enabled
parameter to "true" to enable the speech recognition source.
The MicIn
parameter is responsible for enabling microphone input. If this parameter is set to "false", audio from the input stream is sent for recognition.
If the Wrap
subsection is enabled, the text will be wrapped according to the parameters defined below.
Additionally, in the "SubtitleChannels" section, the new Mode
parameter was implemented to define the work scenario for the Cinegy Subtitling Service for a specific channel.
"SubtitleChannels": [
{
"Id": 0,
"Mode": "Playlist",
"ClearInterval": 500,
"Repositories": [
{
Possible values are "Playlist" and "LiveRecognition". The specifics of these modes are described below.
LiveRecognition Mode
In this mode, the input stream, defined in the InputUrl
parameter within the "Streams" section, will be sent to the speech recognition component for processing. The transcribed data obtained from the audio will be incorporated by the Cinegy Subtitling Service.
Playlist Mode
In "Playlist" mode subtitling source is defined via Subtitle ID in the Cinegy Air playlist item. This mode is used in scenarios of integration with Cinegy Air components, such as Cinegy Air control application, Cinegy Playout, and Cinegy Event Manager.
Note
|
Refer to the Common Architecture section in the Cinegy Subtitling Service Manual for details. |
Depending on the Subtitle ID value specified in the Cinegy Air playlist item, the Cinegy Subtitling Service uses the corresponding source for subtitle data:
-
AI – speech recognition source.
-
Live – live source (Newfor integration).
-
Subtitle file identifier – file source.
For the Subtitling Service to use the speech recognition as a source for subtitle data, the SubtitleID for the corresponding playlist item should be defined as AI.