---
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.
Generate sound effects from text prompts.
tm_text2sfxhttps://openapi.wondershare.cc/v1/open/capacity/application/tm_text2sfxhttps://openapi.wondershare.cc/v1/open/pub/taskUse this mapping to verify provider identity and runtime endpoints:
https://www.tomoviee.ai and https://www.tomoviee.cnhttps://openapi.wondershare.ccopenapi.wondershare.ccapp_key and app_secret are only used to construct Authorization: Basic <base64(app_key:app_secret)>.SKILL.md, scripts, or repository files.pip install requests
python scripts/generate_auth_token.py YOUR_APP_KEY YOUR_APP_SECRET
from scripts.tomoviee_text2sfx_client import TomovieeText2SfxClient
client = TomovieeText2SfxClient("app_key", "app_secret")
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)
prompt (required): Sound effect descriptionduration (required): Duration in seconds, range 5-180qty (optional): Number of generated results, range 1-4callback (optional): Callback URLparams (optional): Transparent callback parametertask_idpoll_until_complete(task_id)resultStatus codes:
- 1 queued
- 2 processing
- 3 success
- 4 failed
- 5 cancelled
- 6 timeout
scripts/tomoviee_text2sfx_client.py - main API clientscripts/tomoviee_text_to_sound_effect_client.py - compatibility import shimscripts/generate_auth_token.py - auth token helperreferences/audio_apis.md - focused API reference for tm_text2sfxreferences/prompt_guide.md - focused prompt writing guide for sound effectshttps://www.tomoviee.ai/developers.htmlhttps://www.tomoviee.ai/doc/https://www.tomoviee.cn/developers.htmlhttps://www.tomoviee.cn/doc/https://openapi.wondershare.cc整体质量较好,使用简单方便。文档说明详细清晰,代码实现稳定可靠,错误处理完善。有实用的提示词编写指南,新手也能快速生成满意音效。主要缺点是缺少测试保障,生成完成需要等待轮询反馈略显繁琐。对普通用户来说,这是一个可靠可用的音效生成工具。