generate_and_save_audio
Convert text to speech audio files for Anki flashcards, saving them to the media collection for use in language learning cards.
Instructions
Generate audio from text and save it to Anki's media collection, returning filename for use in cards.
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>",
"filename": "<filename>"
},
"name": "generate_and_save_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to convert to speech and save | |
| filename | Yes | Name for the audio file (e.g., 'pronunciation.mp3') | |
| language | No | Language code (e.g., 'cmn-cn' for Chinese, 'en-US' for English) | cmn-cn |
| voice | No | Voice name (e.g., 'cmn-CN-Chirp3-HD-Achernar' for Chinese HD voice) | cmn-CN-Chirp3-HD-Achernar |