generated from RageAgainstThePixel/upm-template
-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/websockets
# Conflicts: # ElevenLabs/Packages/com.rest.elevenlabs/Runtime/Authentication/ElevenLabsSettingsInfo.cs # ElevenLabs/Packages/com.rest.elevenlabs/Runtime/TextToSpeech/TextToSpeechEndpoint.cs # ElevenLabs/Packages/com.rest.elevenlabs/package.json # ElevenLabs/Packages/manifest.json
- Loading branch information
Showing
33 changed files
with
946 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
ElevenLabs/Packages/com.rest.elevenlabs/Runtime/Common/CacheFormat.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Licensed under the MIT License. See LICENSE in the project root for license information. | ||
|
||
namespace ElevenLabs | ||
{ | ||
public enum CacheFormat | ||
{ | ||
None, | ||
Ogg, | ||
Wav | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ime/Common/OutputFormatExtensions.cs.meta → ...enlabs/Runtime/Common/CacheFormat.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
ElevenLabs/Packages/com.rest.elevenlabs/Runtime/Common/OutputFormatExtensions.cs
This file was deleted.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
ElevenLabs/Packages/com.rest.elevenlabs/Runtime/Common/TimestampedTranscriptCharacter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Licensed under the MIT License. See LICENSE in the project root for license information. | ||
|
||
using Newtonsoft.Json; | ||
using UnityEngine.Scripting; | ||
|
||
namespace ElevenLabs | ||
{ | ||
/// <summary> | ||
/// Represents timing information for a single character in the transcript | ||
/// </summary> | ||
[Preserve] | ||
public class TimestampedTranscriptCharacter | ||
{ | ||
[Preserve] | ||
[JsonConstructor] | ||
internal TimestampedTranscriptCharacter(string character, double startTime, double endTime) | ||
{ | ||
Character = character; | ||
StartTime = startTime; | ||
EndTime = endTime; | ||
} | ||
|
||
/// <summary> | ||
/// The character being spoken | ||
/// </summary> | ||
[Preserve] | ||
[JsonProperty("character")] | ||
public string Character { get; } | ||
|
||
/// <summary> | ||
/// The time in seconds when this character starts being spoken | ||
/// </summary> | ||
[Preserve] | ||
[JsonProperty("character_start_times_seconds")] | ||
public double StartTime { get; } | ||
|
||
/// <summary> | ||
/// The time in seconds when this character finishes being spoken | ||
/// </summary> | ||
[Preserve] | ||
[JsonProperty("character_end_times_seconds")] | ||
public double EndTime { get; } | ||
} | ||
} |
Oops, something went wrong.