Skip to content

com.rest.elevenlabs 3.5.1#121

Merged
StephenHodgson merged 2 commits intomainfrom
development
Mar 8, 2025
Merged

com.rest.elevenlabs 3.5.1#121
StephenHodgson merged 2 commits intomainfrom
development

Conversation

@StephenHodgson
Copy link
Copy Markdown
Member

  • Fixed generated clip playback for non-streaming clips
  • Updated usages of Task.Delay with WebGL friendly Awaiters.DelayAsync
  • Updated TextToSpeechDemo
  • Updated Deps
  • Updated Unit Tests

- Fixed generated clip playback for non-streaming clips
- Updated usages of Task.Delay with WebGL friendly Awaiters.DelayAsync
- Updated TextToSpeechDemo
- Updated Deps
- Updated Unit Tests
@StephenHodgson StephenHodgson requested a review from Copilot March 8, 2025 23:16
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR improves the functionality of the ElevenLabs package by fixing generated clip playback for non-streaming clips, replacing Task.Delay with a WebGL friendly delay, updating the TextToSpeechDemo, and adjusting unit tests accordingly.

  • Fixed generated audio clip playback in GeneratedClip.cs by reordering logic and properties.
  • Replaced Task.Delay with Awaiters.DelayAsync for better cross-platform support.
  • Updated TextToSpeechDemo and unit tests to verify clip length and playback.

Reviewed Changes

File Description
ElevenLabs/Packages/com.rest.elevenlabs/Runtime/Common/GeneratedClip.cs Refactored audio clip caching and creation logic to support non-streaming clips.
ElevenLabs/Packages/com.rest.elevenlabs/Samples~/TextToSpeech/TextToSpeechDemo.cs Added elapsed time measurement to adjust playback delay and enhanced debug logging.
ElevenLabs/Packages/com.rest.elevenlabs/Tests/Test_Fixture_04_TextToSpeechEndpoint.cs Added assertions comparing audio clip length with reported length to improve test coverage.
ElevenLabs/Packages/com.rest.elevenlabs/Runtime/Dubbing/DubbingEndpoint.cs Updated delay calls to use Awaiters.DelayAsync for WebGL compatibility.
ElevenLabs/Packages/com.rest.elevenlabs/Runtime/TextToSpeech/TextToSpeechEndpoint.cs Fixed the sample rate argument by using a precomputed frequency variable.

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

@StephenHodgson StephenHodgson enabled auto-merge (squash) March 8, 2025 23:45
@StephenHodgson StephenHodgson merged commit 5b1e657 into main Mar 8, 2025
16 checks passed
@StephenHodgson StephenHodgson deleted the development branch March 8, 2025 23:48
github-actions bot pushed a commit that referenced this pull request Mar 8, 2025
- Fixed generated clip playback for non-streaming clips
- Updated usages of Task.Delay with WebGL friendly Awaiters.DelayAsync
- Updated TextToSpeechDemo
- Updated Deps
- Updated Unit Tests
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.

Audio Glitch in Demo Scene Reported crash when accessing VoiceClip.AudioClip w/non stream

2 participants