Skip to content

Commit

Permalink
com.rest.elevenlabs 2.0.4 (#24)
Browse files Browse the repository at this point in the history
- fixed a bug when resetting voice options to default
  • Loading branch information
StephenHodgson committed Jul 1, 2023
1 parent 41a20fb commit c141547
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1049,8 +1049,10 @@ private async void GetDefaultVoiceSettings(Voice voice)

try
{
var defaultVoiceSettings = await api.VoicesEndpoint.GetDefaultVoiceSettingsAsync();
await api.VoicesEndpoint.EditVoiceSettingsAsync(voice, defaultVoiceSettings);
currentVoiceSettings = await api.VoicesEndpoint.GetVoiceSettingsAsync(voice);
voiceSettingsSliderValues = new Vector2(currentVoiceSettings.Stability, currentVoiceSettings.SimilarityBoost);
voiceSettingsSliderValues = new Vector2(defaultVoiceSettings.Stability, defaultVoiceSettings.SimilarityBoost);
}
catch (Exception e)
{
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.3",
"version": "2.0.4",
"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 c141547

Please sign in to comment.