Tomoviee Text to Sound Effects

👤 wondershare-boop 📦 v1.0.4 ⭐ 4.4 ⬇️ 995 下载
🎨 设计多媒体 免费 🔑 需 API Key

📖 技能介绍

--- name: tomoviee-text2sfx description: Generate sound effects from text prompts using Tomoviee Text-to-Sound-Effect API (tm_text2sfx) through Wondershare OpenAPI gateway (https://openapi.wondershare.cc). Use when users request text_to_sound_effect operations or related tasks.


Tomoviee AI Text-to-Sound-Effect

小葱技能7w4.net有更新,你可以访问看下。

Overview

Generate sound effects from text prompts.

  • API capability: tm_text2sfx
  • Task creation endpoint: https://openapi.wondershare.cc/v1/open/capacity/application/tm_text2sfx
  • Result endpoint: https://openapi.wondershare.cc/v1/open/pub/task

Provider and Endpoint Provenance

Use this mapping to verify provider identity and runtime endpoints:

  • Vendor portals: https://www.tomoviee.ai and https://www.tomoviee.cn
  • API gateway host used by this skill: https://openapi.wondershare.cc
  • This skill sends runtime API calls only to openapi.wondershare.cc

Credential Handling

  • app_key and app_secret are only used to construct Authorization: Basic <base64(app_key:app_secret)>.
  • Credentials are kept in process memory only and are not written to disk by this skill.
  • Do not commit credentials into SKILL.md, scripts, or repository files.

Quick Start

Install dependencies

pip install requests

Authentication

python scripts/generate_auth_token.py YOUR_APP_KEY YOUR_APP_SECRET

Python Client

from scripts.tomoviee_text2sfx_client import TomovieeText2SfxClient

client = TomovieeText2SfxClient("app_key", "app_secret")

API Usage

Basic Example

task_id = client.text_to_sound_effect(
    prompt="Heavy rain falling on roof with distant thunder",
    duration=30,
    qty=1,
)

result = client.poll_until_complete(task_id)
import json
audio_url = json.loads(result["result"])["audio_path"][0]
print(audio_url)

Parameters

  • prompt (required): Sound effect description
  • duration (required): Duration in seconds, range 5-180
  • qty (optional): Number of generated results, range 1-4
  • callback (optional): Callback URL
  • params (optional): Transparent callback parameter

Async Workflow

  1. Create task and get task_id
  2. Poll with poll_until_complete(task_id)
  3. Parse output URL from result

Status codes: - 1 queued - 2 processing - 3 success - 4 failed - 5 cancelled - 6 timeout

Resources

  • scripts/tomoviee_text2sfx_client.py - main API client
  • scripts/tomoviee_text_to_sound_effect_client.py - compatibility import shim
  • scripts/generate_auth_token.py - auth token helper
  • references/audio_apis.md - focused API reference for tm_text2sfx
  • references/prompt_guide.md - focused prompt writing guide for sound effects

External Resources

  • Developer portal (global): https://www.tomoviee.ai/developers.html
  • API docs (global): https://www.tomoviee.ai/doc/
  • Developer portal (mainland): https://www.tomoviee.cn/developers.html
  • API docs (mainland): https://www.tomoviee.cn/doc/
  • API gateway host used by this package: https://openapi.wondershare.cc

🤖 AI 评测

整体质量较好,使用简单方便。文档说明详细清晰,代码实现稳定可靠,错误处理完善。有实用的提示词编写指南,新手也能快速生成满意音效。主要缺点是缺少测试保障,生成完成需要等待轮询反馈略显繁琐。对普通用户来说,这是一个可靠可用的音效生成工具。

📊 多维度评分

适应性4.1
规范性4.5
有效性4.4
可靠性4.7
可信度4.5

📁 包含文件 (7 个)

📄 SKILL.md 3 KB
📄 _meta.json 149 B
📄 references/audio_apis.md 1.4 KB
📄 references/prompt_guide.md 1.4 KB
📄 scripts/generate_auth_token.py 1.1 KB
📄 scripts/tomoviee_text2sfx_client.py 5.1 KB
📄 scripts/tomoviee_text_to_sound_effect_client.py 277 B