Install
openclaw skills install liber-speechapiHandle Telegram voice messages with ASR, summarize replies, and provide TTS; also support direct text-to-speech and speech-to-text conversion with environmen...
openclaw skills install liber-speechapiUse this skill for three related tasks:
references/config.md to resolve configuration from .env and config.json.references/workflow.md for Telegram/openclaw voice-message handling.references/api.md when you need endpoint and payload details.references/parameters.md for detailed ASR/TTS parameter meanings and defaults.scripts/summarize_for_voice.py only when a reply must be shortened for voice playback.scripts/liber_speech_client.py for deterministic ASR/TTS calls instead of rewriting HTTP request logic.Prefer a shared python-env skill if it is available in the current environment.
If python-env is not available, use the local Python environment for this skill.
When running local Python commands:
.env.envLoad core service settings from .env in priority order:
LIBER_API_BASE_URL and LIBER_API_KEY)~/.openclaw/.env file (for global configuration).env file.env fileEnvironment variables take the highest priority, followed by the global config file ~/.openclaw/.env, then local skill directory, and finally the current working directory.
Required settings:
LIBER_API_BASE_URLLIBER_API_KEYconfig.jsonLoad detailed defaults from speechapi_config.json in ~/.openclaw/workspace/config/ to prevent overwrites during skill updates.
Fallback to local config.json if the external config doesn't exist.
Key behavior:
"default" or null are omitted from API requestsglobal.telegram_tts_formattts.format as its default output formatglobal.asr_output as its default output modeWhen the user explicitly asks to convert text to speech:
scripts/liber_speech_client.py ttswav unless the caller explicitly requests another formataudio_prompt only when clone audio is enabled and the file existsWhen the user explicitly asks to convert audio to text:
scripts/liber_speech_client.py asrjson outputFor incoming Telegram voice/audio:
textogg_opusFor Telegram voice replies:
ogg_opus outputDepending on the task, return one of: