Play text as speech
speak_textUse this when the flashcard widget requests speech audio for the current card.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>",
"language": "<language>"
},
"name": "speak_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to speak. | |
| language | Yes | Language of the text being spoken. Always specify the current side’s language; never default to the other side or app preferences. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contentType | Yes |