arp.proto 1.44 KB
Newer Older
Matteo's avatar
update  
Matteo committed
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
syntax = "proto3";

/**
* This file is part of the Audio Restoration Package (ARP).
* to compile it run:
* 
* protoc -I protos --python_out=protos --grpc_python_out=protos protos/arp.proto
*/

package arp;

service AudioAnalyser {
    rpc getAimInfo (InfoRequest) returns (Info) {}
    rpc analyse(ComputationRequest) returns (stream ComputationResult) {}
}

service VideoAnalyser {
    rpc getAimInfo (InfoRequest) returns (Info) {}
    rpc analyse(ComputationRequest) returns (stream ComputationResult) {}
}

service TapeIrregularityClassifier {
    rpc getAimInfo (InfoRequest) returns (Info) {}
    rpc classify(ComputationRequest) returns (stream ComputationResult) {}
}

service TapeAudioRestoration {
    rpc getAimInfo (InfoRequest) returns (Info) {}
    rpc restore(ComputationRequest) returns (stream ComputationResult) {}
}

service Packager {
    rpc getAimInfo (InfoRequest) returns (Info) {}
    rpc package(ComputationRequest) returns (stream ComputationResult) {}
}

message InfoRequest {
    optional string field = 1;
}

message Contact {
    string name = 1;
    string email = 2;
}

message License {
    string name = 1;
    string url = 2;
}

message Info {
    string title = 1;
    string description = 2;
    string version = 3;
    Contact contact = 4;
    License license = 5;
}

message ComputationRequest {
    string working_dir = 1;
    string files_name = 2;
}

message ComputationResult {
    bool success = 1;
    string message = 2;
}