Skip to content

fix(tts): prevent KeyError for non-timestamp messages in speech parts - #232

Merged
luk384090-cloud merged 1 commit into
mainfrom
dev/v2.1-3
Nov 12, 2026
Merged

luk384090-cloud merged 1 commit into
mainfrom
dev/v2.1-3

Conversation

@luk384090-cloud

Copy link
Copy Markdown
Collaborator
  • Add check to verify part.output is a dict with "sentence" key before access
  • Skip non-timestamp messages safely in SSML/background music scenarios
  • Avoids unintended KeyError exceptions during speech synthesis processing

Description

[Describe what this PR does and why]

Related Issue: Fixes #[issue_number] or Relates to #[issue_number]

Security Considerations: [Check if API keys or sensitive credentials are exposed in code/logs]

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactoring

Component(s) Affected

  • Model
  • Application
  • Common
  • Documentation
  • Tests
  • CI/CD

Checklist

  • Pre-commit hooks pass
  • Tests pass locally
  • Documentation updated (if needed)
  • Ready for review

Testing

[How to test these changes]

Additional Notes

[Optional: any other context]

- Add check to verify part.output is a dict with "sentence" key before access
- Skip non-timestamp messages safely in SSML/background music scenarios
- Avoids unintended KeyError exceptions during speech synthesis processing
@luk384090-cloud
luk384090-cloud merged commit e066060 into main Nov 12, 2026
12 checks passed
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