Skip to content

Commit

Permalink
com.rest.elevenlabs 3.1.2 (#51)
Browse files Browse the repository at this point in the history
- fixed settings config lookup
  • Loading branch information
StephenHodgson committed Dec 10, 2023
1 parent 995de88 commit 75f4390
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,16 @@ public ElevenLabsSettings(ElevenLabsConfiguration configuration)
configuration = Resources.LoadAll<ElevenLabsConfiguration>(string.Empty).FirstOrDefault(asset => asset != null);
}

if (configuration == null)
if (configuration != null)
{
throw new MissingReferenceException($"Failed to find a valid {nameof(ElevenLabsConfiguration)}!");
Info = new ElevenLabsSettingsInfo(configuration.ProxyDomain, configuration.ApiVersion);
cachedDefault = new ElevenLabsSettings(Info);
}
else
{
Info = new ElevenLabsSettingsInfo();
cachedDefault = new ElevenLabsSettings(Info);
}

Info = new ElevenLabsSettingsInfo(configuration.ProxyDomain, configuration.ApiVersion);
cachedDefault = new ElevenLabsSettings(Info);
}

/// <summary>
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.1.1",
"version": "3.1.2",
"unity": "2021.3",
"documentationUrl": "https://github.com/RageAgainstThePixel/com.rest.elevenlabs#documentation",
"changelogUrl": "https://github.com/RageAgainstThePixel/com.rest.elevenlabs/releases",
Expand Down
4 changes: 2 additions & 2 deletions ElevenLabs/ProjectSettings/ProjectVersion.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
m_EditorVersion: 2022.3.14f1
m_EditorVersionWithRevision: 2022.3.14f1 (eff2de9070d8)
m_EditorVersion: 2022.3.15f1
m_EditorVersionWithRevision: 2022.3.15f1 (b58023a2b463)

0 comments on commit 75f4390

Please sign in to comment.