Skip to content

feat: add listenhub-voice commands#19

Merged
0xFANGO merged 1 commit into
mainfrom
ralph/listenhub-cli--278
Jun 30, 2026
Merged

feat: add listenhub-voice commands#19
0xFANGO merged 1 commit into
mainfrom
ralph/listenhub-cli--278

Conversation

@0xFANGO

@0xFANGO 0xFANGO commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add openapi listenhub-voice commands for ListenHub Voice — end-to-end audio generation (text / reference voices / image → audio).

Commands

  • openapi listenhub-voice generate — create a task from a text script
    • --text (required), --voice speaker:<voiceType>|reference:<url> (1–3, repeatable), --image-url, --speech-rate/--loudness-rate/--pitch-rate/--format, --duration-hint, --watermark, --no-wait, --timeout, -j/--json
  • openapi listenhub-voice tasks — list your tasks (--page, --page-size, --status, --keyword)
  • openapi listenhub-voice task <taskId> — fetch a task detail, with --wait to poll until done

Uses the SDK's createListenHubVoice / getListenHubVoiceTask / listListenHubVoiceTasks (bumps @marswave/listenhub-sdk to ^0.0.16).

Verification

  • pnpm ready (check + test) — pass, 36/36 tests
  • pnpm build — pass
  • Ran all three commands live against the API with an OpenAPI key:
    • generate → task reached success, audio URL returned, credits charged
    • task <id> → detail rendered correctly
    • tasks → list + pagination rendered correctly

Add `openapi listenhub-voice` subcommands for ListenHub Voice end-to-end
audio generation:

- `generate` — create a task from a text script (with optional voices,
  reference image, audio config, duration hint, watermark)
- `tasks` — list your tasks
- `task <taskId>` — fetch a task detail, optionally polling until done

Bumps @marswave/listenhub-sdk to ^0.0.16 for the new client methods.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@0xFANGO
0xFANGO merged commit 3b35e9f into main Jun 30, 2026
1 check passed
@0xFANGO
0xFANGO deleted the ralph/listenhub-cli--278 branch June 30, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant