In different Japanese question types, the reference text (refText) supports various annotation formats to meet specific pronunciation requirements, and annotations can also be set through the question type parameter pronunciation.
Supported annotations:
- Pronunciation: Hiragana or Katakana.
- Pitch accent:
0,1,2,3,4,5, or6, corresponding to ◎, ①, ②, ③, ④, ⑤, or ⑥. - The
ptag specifies pronunciation and may be omitted. The optionalttag specifies pitch accent.
1. Single Character Pronunciation Annotation:
When passing parameters, directly use the corresponding annotation format in the refText field of the evaluation text.
Format:
a(p:xx, t:y), whereais the character to annotate,xxis its pronunciation in Hiragana or Katakana, andyis its pitch accent.
The following forms are supported:
| Tags | refText |
|---|---|
| Neither p nor t | 私(わたくし)は日本料理が大好きです。 |
| p only | 私(p:わたくし)は日本料理が大好きです。 |
| t with implicit p | 私(わたくし, t:0)は日本料理が大好きです。 |
| Both p and t | 私(p:わたくし, t:0)は日本料理が大好きです。 |
Example with both tags:
{
"mode": "word",
"refText": "私(p:わたくし, t:0)は日本料理が大好きです。"
}2. Multiple Character Pronunciation Annotation:
When passing parameters, directly use the corresponding annotation format in the refText field of the evaluation text.
Format:
[abc](p:xx, t:y), where the characters in[]are annotated as a single unit,xxis their pronunciation in Hiragana or Katakana, andyis their pitch accent.
The following forms are supported:
| Tags | refText |
|---|---|
| Neither p nor t | [明日](あす)の試合は、どんなふうに展開するかお楽しみです。 |
| p only | [明日](p:あす)の試合は、どんなふうに展開するかお楽しみです。 |
| t with implicit p | [明日](あす, t:0)の試合は、どんなふうに展開するかお楽しみです。 |
| Both p and t | [明日](p:あす, t:0)の試合は、どんなふうに展開するかお楽しみです。 |
Example with both tags:
{
"mode": "word",
"refText": "[明日](p:あす, t:0)の試合は、どんなふうに展開するかお楽しみです。"
}3. Annotation through Question Type Parameters:
When passing parameters, use the corresponding annotation format directly in the pronunciation field of the question type parameters.
Format: Set
textandphonemesin each object in thepronunciationarray. Thephonemesvalue supports the same four forms as the annotations inrefText.
| Tags | phonemes |
|---|---|
| Neither p nor t | ふう |
| p only | p:ふう |
| t with implicit p | ふう,t:0 |
| Both p and t | p:ふう,t:0 |
Example:
{
"mode": "sentence",
"refText": "明日の試合は、どんな風に展開するかお楽しみです。",
"pronunciation": [
{
"text": "明日",
"phonemes": "p:あす,t:0"
},
{
"text": "風",
"phonemes": "p:ふう,t:0"
}
]
}