feat: add listenhub-voice commands#19
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
openapi listenhub-voicecommands 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/--jsonopenapi listenhub-voice tasks— list your tasks (--page,--page-size,--status,--keyword)openapi listenhub-voice task <taskId>— fetch a task detail, with--waitto poll until doneUses the SDK's
createListenHubVoice/getListenHubVoiceTask/listListenHubVoiceTasks(bumps@marswave/listenhub-sdkto^0.0.16).Verification
pnpm ready(check + test) — pass, 36/36 testspnpm build— passgenerate→ task reachedsuccess, audio URL returned, credits chargedtask <id>→ detail rendered correctlytasks→ list + pagination rendered correctly