Last updated: May 6, 2019
There are 9 key steps to localize RoboTutor as mentioned below:
- Analysis of game content: Identify components in the application that require localization.
- Story creation: Create stories in local language. This helps the child to read and understand sentences.
- Image creation: To represent stories and content in an effective manner, identify the images required.
- Dialog creation: To ensure the child learns how to effectively communicate in day-to-day life, create basic dialog..
- Time-stamp generation: To synchronize the highlighting of words in sentences, generate time stamps for audio files.
- Speech recognition: Create speech recognition models for localized languages.
- Handwriting recognition: Create handwriting recognition models for handwritten characters in localized languages.
- Font: Select a suitable font that can correctly render localized text in the application.
- Final build: With all the assets now prepared, build RoboTutor in the new target language.
Stories section consists of 3 main components, as mentioned below:
- Story audio
- Story content
- Story images
Stories can be localized as follows:
- Localize the story audio present in English_StoriesAudio.
- Localize the story content by modifying the JSON files present here.
For example, use the code snippet from storydata.json file below and modify the value under the keys word, utterances and sentence to use localized text. Update the word's start and end timestamps by modifying the values for the keys start and end respectively.
{
"image": "a_cow_is_my_friend_1_page_2_image_0001.jpg",
"page": 2,
"text": [
[
{
"narration": [
{
"audio": "mother_cow_cow_i_like_you_cow.mp3",
"from": 19,
"segmentation": [
{
"end": 62,
"start": 19,
"word": "Mother"
},
{
"end": 95,
"start": 63,
"word": "cow"
},
{
"end": 123,
"start": 96,
"word": "cow"
},
{
"end": 195,
"start": 186,
"word": "I"
},
{
"end": 220,
"start": 196,
"word": "like"
},
{
"end": 244,
"start": 221,
"word": "you"
},
{
"end": 286,
"start": 245,
"word": "cow"
}
],
"until": 286,
"utterances": "Mother cow cow I like you cow"
}
],
"sentence": "Mother cow cow, I like you cow."
}
]
]
}
- Replace the images in story folder with localized images.
Replace the available instructions in the English_TutorAudio folder with localized audio.
Game content is available in the assets/tutors folder. In order to localize the game content, the JSON files available in assets/tutor folder need to be updated.
The PocketSphinx library is being used for speech recognition. Replace the speech recognition models available in the models folder with localized models. Languages supported by PocketSphinx can be found here. Replace the contents of the models folder with a supported language.
The Lipi Toolkit (LipiTk) is being used for handwriting recognition. Replace the modules in the comp_ltkplus folder with localized modules. Languages supported by LipiTk can be found here. Replace the contents of comp_ltkplus folder with a supported language.
Replace the fonts in the fonts folder with the fonts that support your target localization language. Ensure that the new font files have the same name as the existing font file names so that the application can pick it up.