AgentSkillsCN

telnyx-stt

使用 Telnyx 语音转文本 API 将音频文件转录为文本。适用于需要将音频录音、语音消息或口头内容转换为文本时使用。

SKILL.md
--- frontmatter
name: telnyx-stt
description: Transcribe audio files to text using Telnyx Speech-to-Text API. Use when you need to convert audio recordings, voice messages, or spoken content to text.
metadata: {"openclaw":{"emoji":"🎤","requires":{"bins":["python3"],"env":["TELNYX_API_KEY"]},"primaryEnv":"TELNYX_API_KEY"}}

Telnyx Speech-to-Text

Transcribe audio files to text using the Telnyx STT API (powered by Whisper).

Usage

To transcribe an audio file, run:

bash
{baseDir}/scripts/telnyx-stt.py /path/to/audio.mp3

The script outputs the transcribed text to stdout.

Supported Formats

  • MP3
  • WAV
  • OGG
  • M4A
  • WebM

Example

bash
{baseDir}/scripts/telnyx-stt.py /tmp/voice-message.ogg

Output:

code
Hello, this is a test transcription.

Environment

Requires TELNYX_API_KEY environment variable to be set.