Skip to content

Commit

Permalink
com.rest.elevenlabs 3.0.2 (#38)
Browse files Browse the repository at this point in the history
- Fixed partial clip sample rate not being set correctly
  • Loading branch information
StephenHodgson committed Oct 30, 2023
1 parent 88b8ad1 commit c71fcf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void StreamCallback(Response partialResponse)
}

var chunk = PCMEncoder.Decode(partialResponse.Data, PCMFormatSize.SixteenBit);
var audioClip = AudioClip.Create($"{clipId}_{++part}", chunk.Length, 1, 44100, false);
var audioClip = AudioClip.Create($"{clipId}_{++part}", chunk.Length, 1, frequency, false);

if (!audioClip.SetData(chunk, 0))
{
Expand Down
2 changes: 1 addition & 1 deletion ElevenLabs/Packages/com.rest.elevenlabs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "ElevenLabs",
"description": "A non-official Eleven Labs voice synthesis RESTful client.",
"keywords": [],
"version": "3.0.1",
"version": "3.0.2",
"unity": "2021.3",
"documentationUrl": "https://github.com/RageAgainstThePixel/com.rest.elevenlabs#documentation",
"changelogUrl": "https://github.com/RageAgainstThePixel/com.rest.elevenlabs/releases",
Expand Down

0 comments on commit c71fcf8

Please sign in to comment.