Skip to content

Commit

Permalink
com.rest.elevenlabs 2.0.8 (#31)
Browse files Browse the repository at this point in the history
- Added CreateVoiceRequest.Description
  • Loading branch information
StephenHodgson committed Sep 28, 2023
1 parent d124a4d commit 1a25be8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,22 @@ public sealed class CreateVoiceRequest
[JsonConstructor]
public CreateVoiceRequest(
[JsonProperty("voice_name")] string voiceName,
[JsonProperty("voice_description")] string description,
[JsonProperty("generated_voice_id")] string generatedVoiceId = null)
{
VoiceName = voiceName;
Description = description;
GeneratedVoiceId = generatedVoiceId;
}

[Preserve]
[JsonProperty("voice_name")]
public string VoiceName { get; }

[Preserve]
[JsonProperty("voice_description")]
public string Description { get; }

[Preserve]
[JsonProperty("generated_voice_id")]
public string GeneratedVoiceId { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public async Task Test_02_GenerateVoice()
var (generatedVoiceId, audioClip) = await api.VoiceGenerationEndpoint.GenerateVoiceAsync(generateRequest);
Debug.Log(generatedVoiceId);
Assert.NotNull(audioClip);
var createVoiceRequest = new CreateVoiceRequest("Test Voice Lab Create Voice", generatedVoiceId);
var createVoiceRequest = new CreateVoiceRequest("Test Voice Lab Create Voice", "This is a test voice", generatedVoiceId);
Assert.NotNull(createVoiceRequest);
var result = await api.VoiceGenerationEndpoint.CreateVoiceAsync(createVoiceRequest);
Assert.NotNull(result);
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": "2.0.7",
"version": "2.0.8",
"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 1a25be8

Please sign in to comment.