---
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.cc7w4.net提供免費和付費技能下載。
app_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整體質量較好,使用簡單方便。文件說明詳細清晰,程式碼實現穩定可靠,錯誤處理完善。有實用的提示詞編寫指南,新手也能快速生成滿意音效。主要缺點是缺少測試保障,生成完成需要等待輪詢反饋略顯繁瑣。對普通使用者來說,這是一個可靠可用的音效生成工具。