-
Notifications
You must be signed in to change notification settings - Fork 3
/
ct.proto
91 lines (71 loc) · 2.04 KB
/
ct.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
syntax = "proto3";
package CTGrpc;
service PythonServer {
rpc GetScenesRPC (File) returns (JsonString) {}
rpc ToPhraseHintsRPC(PhraseHintRequest) returns (PhraseHintResponse) {}
rpc GetKalturaChannelEntriesRPC (PlaylistRequest) returns (JsonString) {}
rpc DownloadKalturaVideoRPC (MediaRequest) returns (File) {}
rpc GetEchoPlaylistRPC (PlaylistRequest) returns (JsonString) {}
rpc DownloadEchoVideoRPC (MediaRequest) returns (File) {}
rpc GetYoutubePlaylistRPC (PlaylistRequest) returns (JsonString) {}
rpc DownloadYoutubeVideoRPC (MediaRequest) returns (File) {}
rpc ConvertVideoToWavRPCWithOffset (FileForConversion) returns (File) {}
rpc ProcessVideoRPC (File) returns (File) {}
rpc ComputeFileHash (FileHashRequest) returns (FileHashResponse) {}
rpc GetMediaInfoRPC(File) returns (JsonString) {}
rpc TranscribeAudioRPC (TranscriptionRequest) returns (JsonString) {}
}
message TranscriptionRequest {
string filePath = 1; // Path to the audio/video file to be transcribed
string model = 2; // Whisper model to use (e.g., 'base-en', 'tiny-en')
string language = 3; // Language in audio.
string logId = 4;
bool testing = 5;
}
// The request message containing the user's name.
message JsonString {
string json = 1;
}
// The response message containing the greetings.
message PlaylistRequest {
string Url = 1;
int32 stream = 2;
JsonString metadata = 3;
}
message MediaRequest {
string videoUrl = 1;
string additionalInfo = 2;
}
message PhraseHintRequest {
string rawPhraseData = 1;
}
message File {
string filePath = 1;
string ext = 2;
}
message FileForConversion {
File file = 1;
float offset = 2;
}
message EPubData {
string title = 1;
string author = 2;
string publisher = 3;
repeated EPubChapter chapters = 4;
string file = 5;
}
message EPubChapter {
string title = 1;
string text = 2;
File image = 3;
}
message FileHashRequest {
string file = 1;
string algorithms = 2;
}
message FileHashResponse {
string result = 1;
}
message PhraseHintResponse {
string result = 1;
}