Generate sound effects from text description. Use when users request text_to_sound_effect operations or related tasks.
Generate sound effects from text description.
API: tm_text2sfx
python scripts/generate_auth_token.py YOUR_APP_KEY YOUR_APP_SECRET
from scripts.tomoviee_text_to_sound_effect_client import TomovieeClient
client = TomovieeClient("app_key", "app_secret")
task_id = client._make_request({
prompt='Heavy rain falling on roof with thunder'
duration=30
})
result = client.poll_until_complete(task_id)
import json
output = json.loads(result['result'])
prompt (required): Sound effect descriptionduration: Duration in seconds (5-180, default: 10)qty: Number of sounds (1-4)task_id from API callpoll_until_complete(task_id)Status codes:
tomoviee_text_to_sound_effect_client.py - API clientgenerate_auth_token.py - Auth token generatorSee bundled reference documents for detailed API documentation and examples.
ZIP package — ready to use