跳至主要内容
小龙虾小龙虾AI
🤖

Tts

Convert text to speech using Hume AI (or OpenAI) API. Use when the user asks for an audio message, a voice reply, or to hear something "of vive voix".

下载2.2k
星标0
版本1.0.0
开发工具
安全通过

技能说明


name: tts description: Convert text to speech using Hume AI (or OpenAI) API. Use when the user asks for an audio message, a voice reply, or to hear something "of vive voix".

Text-to-Speech (TTS)

Convert text to speech and generate audio files (MP3).

Hume AI (Preferred)

  • Preferred Voice: 9e1f9e4f-691a-4bb0-b87c-e306a4c838ef
  • Keys: Stored in environment as HUME_API_KEY and HUME_SECRET_KEY.

Usage

HUME_API_KEY="..." HUME_SECRET_KEY="..." node {baseDir}/scripts/generate_hume_speech.js --text "Hello Jonathan" --output "output.mp3"

OpenAI (Legacy)

  • Preferred Voice: nova
  • Usage: OPENAI_API_KEY="..." node {baseDir}/scripts/generate_speech.js --text "..." --output "..."

General Notes

  • The scripts print a MEDIA: line with the absolute path to the generated file.
  • Use the message tool to send the resulting file to the user.

如何使用「Tts」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「Tts技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能