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.
- com.utilities.rest -> 3.3.0 - com.utilities.encoder.ogg -> 4.0.2 - Added additional request properties for TextToSpeechRequest - `previous_text`, `next_text`, `previous_request_ids`, `next_request_ids`, `languageCode`, `withTimestamps` - `cacheFormat` which can be `None`, `Wav`, or `Ogg` - Added support for transcription timestamps by @tomkail - Added support for language code in TextToSpeechRequest @Mylan719 - Refactored `VoiceClip` - clip samples and data are now prioritized over the `AudioClip` - audioClip will not be created until you access the `VoiceClip.AudioClip` property - if an audio clip is not loaded, you can load it with `LoadCachedAudioClipAsync` - Refactored demo scene to use `OnAudioFilterRead` to better quality stream playback --------- Co-authored-by: Milan Mikuš <mylan719@gmail.com> Co-authored-by: Milan Mikuš <milan.mikus@riganti.cz> Co-authored-by: Tom Kail <thomas.kail@betterup.co> Co-authored-by: Tom Kail <tkail92@gmail.com>
- Loading branch information
1 parent
4600769
commit fd14bc5
Showing
26 changed files
with
892 additions
and
421 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
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 → 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
This file was deleted.
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
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; } | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Licensed under the MIT License. See LICENSE in the project root for license information. | ||
|
||
namespace ElevenLabs.Extensions | ||
{ | ||
public static class Extensions | ||
{ | ||
public static int GetSampleRate(this OutputFormat format) => format switch | ||
{ | ||
OutputFormat.PCM_16000 => 16000, | ||
OutputFormat.PCM_22050 => 22050, | ||
OutputFormat.PCM_24000 => 24000, | ||
OutputFormat.PCM_44100 => 44100, | ||
_ => 44100 | ||
}; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.