Skip to content

fix: ezai asr error when a speech segment has no transcript - #2262

Merged
plutoless merged 1 commit into
TEN-framework:mainfrom
samx81:fix/ezai_asr_empty_resp
Jul 29, 2026
Merged

fix: ezai asr error when a speech segment has no transcript#2262
plutoless merged 1 commit into
TEN-framework:mainfrom
samx81:fix/ezai_asr_empty_resp

Conversation

@samx81

@samx81 samx81 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

image

Maintainer report an bug in extension when a possible speech segment detected by ASR but no transcript.

Since it's easier to ignore in client-side, fixed by init self.prev_result to a empty item,
when a speech segment ( type == "SpeechStarted") exists but no transcript, return that empty item

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Performance improvement
  • Code refactoring

Testing

  • Tests added/updated
  • All tests pass
  • Manual testing completed

Documentation

  • Documentation updated
  • Examples provided if needed

init `self.prev_result` to a empty item so if a speech segment exists but no transcript, return it
@samx81 samx81 changed the title fix: ezai asr error when speech segment has no transcript fix: ezai asr error when a speech segment has no transcript Jul 29, 2026
@plutoless
plutoless merged commit a884a86 into TEN-framework:main Jul 29, 2026
20 of 21 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.

2 participants