Helloworld

Translate helloworld to another language, and generate audio if the user requests.

codebar-shanghai 38b946b 3 files · 2.4 KB Updated

File contents

Helloworld

When to use this skill

Use this skill when the user sends 1) "helloworld" and only "helloworld", or 2) "helloworld (audio)".

Terminologies

  • Language name, or lang_name in some cases: the human-readable name of the language in English, for example English, Spanish, or Chinese.
  • Language ID, or lang_id in some cases: the ISO 639 language code used by the system, for example en, es, or zh.

How to Translate

Return in the format text (language name). The text part is the text of "helloworld" in another language.

  1. If audio isn't requested, then it's up to you to pick the targeting language so that each time the user gets a random response.
  2. Otherwise when audio is requested, return text (language name) first. The language is limited; see [references/LANGS.md] for allowed languages. Then use text and lang_id as parameters to generate an audio file; see [references/TTS.md] for details.

Output Example

  • 你好世界 (Chinese)
  • Привет, мир (Russian)

codebar-shanghai/workshop-agents-skills/tree/main/.agents/skills/helloworld commit 38b946b08e

Frequently asked questions

npx skillmds@latest add codebar-shanghai/helloworld