Repository navigation
fix(doubao): decode successful Seed Audio responses - #69
Merged
Merged
Conversation
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.
What changed
Doubao Voice 0.1.1 uses API 2.38's error-only status option for the single-object Seed Audio response. Streaming TTS keeps its strict status checks. The package declares the minimum host version and the integration test uses a success response without a code.
Why
An authenticated generation returned Base64 audio, duration, original duration and a URL with HTTP 200. Version 0.1.0 rejected it because the response contained no code. This also matches the provider's published success example. The host change is in WhiteTowerAI/ohmygame#1127; activation is tracked in WhiteTowerAI/ohmygame#1030.
Verification
The adapter decoded a previously captured real sound effect into a 48 kHz MP3. A new host process read the saved output without network traffic. The real TTS sample decoded at 24 kHz, including its null completion events. Type checking, 307 Node tests and 110 Vitest tests passed locally; the seven Doubao integration tests passed with the final engine minimum.