Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] python grpc 용 프로토 추가 #10

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 33 additions & 6 deletions proto/internal.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,41 @@ syntax = "proto3";

package proto;

message HelloRequest {
string name = 1;
message PronunciationFeedbackRequest {
string sentence = 1;
string audio_path = 2;
string tip = 3;
}

message HelloResponse {
string message = 1;
message PronunciationFeedbackResponse {
string transcript = 1;
repeated int32 wrong_idx_major = 2;
repeated int32 wrong_idx_minor = 3;
double pronunciation_score = 4;
double decibel = 5;
double speech_rate = 6;
string positive_feedback = 7;
string negative_feedback = 8;
}

service HelloService {
rpc Hello(HelloRequest) returns (HelloResponse);
service PronunciationFeedbackService {
rpc PronunciationFeedback(PronunciationFeedbackRequest) returns (PronunciationFeedbackResponse);
}

message CommunicationFeedbackRequest {
string context = 1;
string question = 2;
string expected_answer = 3;
string audio_path = 4;
string img_path = 5;
}

message CommunicationFeedbackResponse {
string positive_feedback = 1;
string negative_feedback = 2;
string enhanced_answer = 3;
}

service CommunicationFeedbackService {
rpc CommunicationFeedback(CommunicationFeedbackRequest) returns (CommunicationFeedbackResponse);
}
Loading