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] 필요한 protobuf 파일 정의 #5

Merged
merged 13 commits into from
Feb 18, 2024
30 changes: 30 additions & 0 deletions proto/articulation.proto
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

articulation의 의미가 문장 구사보다는 발음 명료성에 가까운 거 같아서 다른 워딩을 쓰는 게 좋지 않을까 생각!
(formation, contextual feedback 등...?)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이름 바꿨습니당

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
syntax = "proto3";

package proto;

// information for articulation practice
message ContextDTO {
int32 id = 1;
string image_url = 2;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question도 필요할 듯!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그때 예시 봤을 때 이미지 + 이미지를 보고 답할 수 있는 질문들 구성인 것 같은데 질문도 같이 내려줘야할지도?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그러고보니 우리의 귀요미 캐릭터 동영상은 어떻게 하기로 했었죠?...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그건 일단 패스...


message GetContextRequest {
int32 id = 1;
}

message GetContextResponse {
ContextDTO context = 1;
}

message ArticulationFeeback {
int32 context_id = 1;
string overall_feedback = 5;
}

message GetArticulationFeedbackRequest {
int32 context_id = 1;
}

message GetArticulationFeedbackResponse {
ArticulationFeeback articulation_feedback = 1;
}
28 changes: 28 additions & 0 deletions proto/history.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
syntax = "proto3";

package proto;

import "articulation.proto";

Check failure on line 5 in proto/history.proto

View workflow job for this annotation

GitHub Actions / build

read articulation.proto: file does not exist
import "pronunciation.proto";

enum HistoryType {
UNKNOWN = 0;
PRONUNCIATION = 1;
ARTICULATION = 2;
}

message FeebackHistoryDTO {
HistoryType type = 1;
oneof feeback {
PronunciationFeedbackDTO pronunciation = 2;
ArticulationFeedbackDTO articulation = 3;
}
}

message ListHistoriesRequest {
optional HistoryType type = 1;
}

message ListHistoriesResponse {
repeated FeebackHistoryDTO histories = 1;
}
35 changes: 35 additions & 0 deletions proto/pronunciation.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
syntax = "proto3";

package proto;

// sentence which user has to try to pronounce
message SentenceDTO {
int32 id = 1;
string text = 2;
}

message GetSetenceRequest {
int32 id = 1;
}

message GetSetenceResponse {
SentenceDTO sentence = 1;
}

message PronunciationFeeback {
int32 sentence_id = 1;
repeated int32 incorrect_indexes = 2;
int32 pronunciation_score = 3;
int32 volume_score = 4;
int32 speed_score = 5;
string overall_feedback = 6;
}

message GetPronunciationFeebackRequest {
int32 sentence_id = 1;
string audio_file_url = 2;
}

message SubmitPronunciationResponse {
PronunciationFeeback pronunciation_feeback = 1;
}
31 changes: 31 additions & 0 deletions proto/situation.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
syntax = "proto3";

package proto;

import "articulation.proto";
import "pronunciation.proto";

// situation used to select the theme of the session
message SituationDTO {
int32 id = 1;
string title = 2;
string thumbnail_url = 3;
repeated SentenceDTO sentences = 4;
repeated ContextDTO contexts = 5;
}

message ListSituationsRequest {
// empty
}

message ListSituationsResponse {
repeated SituationDTO situations = 1;
}

message GetSituationRequest {
int32 id = 1;
}

message GetSituationResponse {
SituationDTO situation = 1;
}
Loading