tomoviee-text-to-music

Generate background music from text prompts using Tomoviee Text-to-Music API (`tm_text2music`) through Wondershare OpenAPI gateway (`https://openapi.wondershare.cc`). Use when users request text-to-music generation with duration and quantity control.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "tomoviee-text-to-music" with this command: npx skills add wondershare-boop/tomoviee-text-to-music

Tomoviee AI Text-to-Music

Overview

Generate background music from text prompts.

  • API capability: tm_text2music
  • Task creation endpoint: https://openapi.wondershare.cc/v1/open/capacity/application/tm_text2music
  • 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 -r requirements.txt

Authentication helper

python scripts/generate_auth_token.py YOUR_APP_KEY YOUR_APP_SECRET

Python Client

from scripts.tomoviee_text2music_client import TomovieeText2MusicClient

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

API Usage

Basic Example

task_id = client.text_to_music(
    prompt="Upbeat tech music, modern and energetic electronic pop",
    duration=30,
    qty=1,
    disable_translate=False,
)

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

Parameters

  • prompt (required): Prompt text. Supports up to 77 tokens; extra content is truncated.
  • duration (required): Target music duration in seconds, range 0-95.
  • qty (required): Number of generated music outputs, range 1-4.
  • disable_translate (optional): Whether to disable translation.
  • 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_text2music_client.py - main API client
  • scripts/tomoviee_text_to_music_client.py - compatibility import shim
  • scripts/generate_auth_token.py - auth token helper
  • references/audio_apis.md - API reference and parameter constraints
  • references/prompt_guide.md - prompt writing guidance

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Novel Workshop

多模型命题小说创作工坊。用户给出写作命题,自动完成:AI 写初稿 → 三路并行审阅(逻辑/文学/锐评)→ AI 改稿 → 飞书文档完整存档。 一键启动,全程自动,零手动干预。支持飞书实时进度推送。 触发词:命题写作、写一篇小说、命题小说、创作工坊、novel workshop

Registry SourceRecently Updated
General

Openclaw Commerce Shopify

Shopify store management through OpenClaw Commerce API

Registry SourceRecently Updated
General

Article Extract

提取微信公众号、博客、新闻等网页的正文内容,绕过反爬机制,纯文本输出。

Registry SourceRecently Updated
General

Compensation & Salary Benchmarking

Build competitive compensation plans using market data, salary bands, equity, bonuses, geographic pay adjustments, and retention risk scoring.

Registry SourceRecently Updated
68901kalin