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

[Fix] typo #42

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion ai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Input
```js
{
"user-audio" : "example1.m4a",
"practice-sentece": "It's autumn now, and the leaves are turning beautiful colors.",
"practice-sentence": "It's autumn now, and the leaves are turning beautiful colors.",
"tip": "Say 'aw-tum,' not 'ay-tum.'"
}
```
Expand Down
30 changes: 15 additions & 15 deletions ai/data/pro-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,52 +25,52 @@
"topic": "school"
},
{
"practice-sentece": "I like to play with my toys in my home.",
"practice-sentence": "I like to play with my toys in my home.",
"tip": "Say the word 'home' with a long 'o' sound, like you're saying 'oh-mm'.",
"topic": "home"
},
{
"practice-sentece": "My home is a happy place where I can relax.",
"practice-sentence": "My home is a happy place where I can relax.",
"tip": "Remember to say the 'h' sound in the word 'home'.",
"topic": "home"
},
{
"practice-sentece": "I love to help my mom clean up the home.",
"practice-sentence": "I love to help my mom clean up the home.",
"tip": "Try to say the 'm' sound in 'mom' without closing your lips completely.",
"topic": "home"
},
{
"practice-sentece": "My home is a castle where I am the king.",
"practice-sentence": "My home is a castle where I am the king.",
"tip": "Pronounce the 'k' sound in 'king' clearly by pressing your tongue against the roof of your mouth.",
"topic": "home"
},
{
"practice-sentece": "I feel safe and cozy in my warm home.",
"practice-sentence": "I feel safe and cozy in my warm home.",
"tip": "Say the 'w' sound in 'warm' by rounding your lips slightly.",
"topic": "home"
},
{
"practice-sentece": "I love going to school",
"practice-sentence": "I love going to school",
"tip": "Say the 'l' sound in 'love' clearly and touch your top teeth with your tongue",
"topic": "school"
},
{
"practice-sentece": "We learn a lot in school",
"practice-sentence": "We learn a lot in school",
"tip": "Pronounce the 'a' in 'learn' as in 'apple'",
"topic": "school"
},
{
"practice-sentece": "I have many friends at school",
"practice-sentence": "I have many friends at school",
"tip": "Say the 'f' sound in 'friends' by blowing air through your lips",
"topic": "school"
},
{
"practice-sentece": "I like playing in the school playground",
"practice-sentence": "I like playing in the school playground",
"tip": "Practice the 'pl' sound in 'playground' by placing your lips together and blowing air through them",
"topic": "school"
},
{
"practice-sentece": "I can't wait to go to school tomorrow",
"practice-sentence": "I can't wait to go to school tomorrow",
"tip": "Say the 't' sound in 'tomorrow' by touching the tip of your tongue to the back of your top teeth",
"topic": "school"
},
Expand Down Expand Up @@ -100,27 +100,27 @@
"topic": "hospital"
},
{
"practice-sentece": "I love playing hide-and-seek in my home.",
"practice-sentence": "I love playing hide-and-seek in my home.",
"tip": "Remember to stretch your lips wide when you say 'home' and 'hide'.",
"topic": "home"
},
{
"practice-sentece": "We have a cozy living room where we gather as a family.",
"practice-sentence": "We have a cozy living room where we gather as a family.",
"tip": "Try to make the 'z' sound in 'cozy' by gently buzzing your lips together.",
"topic": "home"
},
{
"practice-sentece": "Our kitchen is bright and spacious, perfect for cooking and baking.",
"practice-sentence": "Our kitchen is bright and spacious, perfect for cooking and baking.",
"tip": "Pronounce the 's' in 'spacious' with a slight hiss by pushing air between your teeth.",
"topic": "home"
},
{
"practice-sentece": "My bedroom is my favorite place to relax and read.",
"practice-sentence": "My bedroom is my favorite place to relax and read.",
"tip": "Say 'relax' slowly, emphasizing the 'l' sound by putting your tongue behind your top teeth.",
"topic": "home"
},
{
"practice-sentece": "We always leave our shoes in the hallway to keep the house clean.",
"practice-sentence": "We always leave our shoes in the hallway to keep the house clean.",
"tip": "Remember to round your lips slightly when you say 'hallway' to make the 'o' sound.",
"topic": "home"
}
Expand Down
4 changes: 2 additions & 2 deletions ai/data/prompt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ gen-sent : |-
Respond in JSON format. WITHOUT Any additional words.
[
{{
"practice-sentece" : ' ',
"practice-sentence" : ' ',
"tip" : ' '
}},
{{
"practice-sentece" : ' ',
"practice-sentence" : ' ',
"tip" : ' '
}},
..
Expand Down
2 changes: 1 addition & 1 deletion ai/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

pro_input = {
"user-audio": "example1.m4a",
"practice-sentece": "It's autumn now, and the leaves are turning beautiful colors.",
"practice-sentence": "It's autumn now, and the leaves are turning beautiful colors.",
"tip": "Say 'aw-tum,' not 'ay-tum.'"
}

Expand Down
2 changes: 1 addition & 1 deletion ai/fluentify.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def ComFeedback(self, input):
return None

def ProFeedback(self, input):
ground_truth = input["practice-sentece"]
ground_truth = input["practice-sentence"]
self.EvaluatePro(f"{self.audio_path}/{input['user-audio']}")
self.GetWer(self.pro_transcription.upper(), ground_truth.upper())
sentence_lst = ground_truth.split(" ")
Expand Down
Loading